From 280f8015d06af1f41a3ef12e8300801c7a5e0d54 Mon Sep 17 00:00:00 2001 From: AviZi Date: Fri, 9 Jun 2017 02:39:56 +0300 Subject: [SDC-29] Amdocs OnBoard 1707 initial commit. Change-Id: Ie4d12a3f574008b792899b368a0902a8b46b5370 Signed-off-by: AviZi --- .../action_library_client/action_library_client.py | 16 +- .../doc/ASDC_Action_Lib_API_AID_1610_13.pdf | Bin 0 -> 1619194 bytes .../tools/build/scripts/cassandra-commands.json | 23 +- .../generate-application-config-insert-cql.sh | 2 +- .../build/scripts/generate-cassandra-alter-cql.sh | 2 +- .../build/scripts/generate-cassandra-drop-cql.sh | 2 +- .../build/scripts/generate-cassandra-init-cql.sh | 5 +- .../build/scripts/zusammen-cassandra-commands.json | 20 + .../zusammen-generate-cassandra-init-cql.sh | 44 + .../database/monitoring/component/ceilometer.ftl | 67 - .../database/monitoring/compute/ceilometer.ftl | 249 + .../database/monitoring/port/ceilometer.ftl | 60 + .../schemaTemplates/composition/component.ftl | 3 + .../schemaTemplates/questionnaire/component.ftl | 18 +- .../database/schemaTemplates/questionnaire/vsp.ftl | 18 +- openecomp-be/tools/migration/1607_to_1610.py | 22 +- openecomp-be/tools/migration/1702_to_1707.sh | 15 + .../tools/migration/1702_to_1707_zusammen/pom.xml | 241 + .../src/main/assembly/migration-lib-assembly.xml | 41 + .../openecomp/core/migration/MigrationMain.java | 485 + .../migration/convertors/ComponentConvertor.java | 102 + .../convertors/EntitlementPoolConvertor.java | 96 + .../convertors/FeatureGroupConvertor.java | 100 + .../core/migration/convertors/LKGConvertor.java | 79 + .../convertors/LicenseAgreementConvertor.java | 84 + .../core/migration/convertors/MibConvertor.java | 66 + .../migration/convertors/NetworkConvertor.java | 91 + .../core/migration/convertors/NicConvertor.java | 95 + .../OrchestrationTemplateCandidateConvertor.java | 78 + .../migration/convertors/ProcessConvertor.java | 98 + .../core/migration/convertors/VlmConvertor.java | 94 + .../convertors/VspInformationConvertor.java | 141 + .../convertors/VspServiceArtifactConvertor.java | 86 + .../convertors/VspServiceTemplateConvertor.java | 102 + .../loaders/ComponentCassandraLoader.java | 55 + .../loaders/EntitlementPoolCassandraLoader.java | 31 + .../loaders/FeatureGroupCassandraLoader.java | 30 + .../core/migration/loaders/LKGCassandraLoader.java | 31 + .../loaders/LicenseAgreementCassandraLoader.java | 31 + .../core/migration/loaders/MibCassandraLoader.java | 55 + .../migration/loaders/NetworkCassandraLoader.java | 35 + .../core/migration/loaders/NicCassandraLoader.java | 63 + ...hestrationTemplateCandidateCassandraLoader.java | 56 + .../migration/loaders/ProcessCassandraLoader.java | 55 + .../loaders/ServiceArtifactCassandraLoader.java | 61 + .../loaders/ServiceTemplateCassandraLoader.java | 61 + .../loaders/VendorLicenseModelCassandraLoader.java | 50 + .../loaders/VendorSoftwareProductInfoLoader.java | 68 + .../loaders/VersionInfoCassandraLoader.java | 55 + .../core/migration/loaders/VspInformation.java | 276 + .../core/migration/store/ElementHandler.java | 136 + .../core/migration/store/ItemHandler.java | 122 + .../org/openecomp/core/migration/util/Utils.java | 15 + .../migration/util/marker/MigrationMarker.java | 49 + .../util/marker/MigrationMarkerEntity.java | 45 + .../src/main/resources/logback.xml | 282 + openecomp-be/tools/migration/README | 16 +- openecomp-be/tools/migration/cassandra2zusammen.sh | 17 + openecomp-be/tools/scripts/generate-manifest.py | 4 +- openecomp-be/tools/swagger-ui/api-docs/api.html | 13140 ------------------- openecomp-be/tools/swagger-ui/api-docs/api.json | 4676 ------- openecomp-be/tools/swagger-ui/lang/en.js | 20 - openecomp-be/tools/swagger-ui/lang/es.js | 20 - openecomp-be/tools/swagger-ui/lang/ja.js | 76 +- openecomp-be/tools/swagger-ui/lang/pt.js | 20 - openecomp-be/tools/swagger-ui/lang/ru.js | 62 +- openecomp-be/tools/swagger-ui/lang/tr.js | 20 - openecomp-be/tools/swagger-ui/lang/translator.js | 20 - openecomp-be/tools/swagger-ui/lang/zh-cn.js | 86 +- openecomp-be/tools/swagger-ui/lib/backbone-min.js | 22 +- .../tools/swagger-ui/lib/handlebars-2.0.0.js | 22 +- .../tools/swagger-ui/lib/highlight.7.3.pack.js | 22 +- .../tools/swagger-ui/lib/jquery-1.8.0.min.js | 22 +- .../tools/swagger-ui/lib/jquery.ba-bbq.min.js | 22 +- .../tools/swagger-ui/lib/jquery.slideto.min.js | 20 - .../tools/swagger-ui/lib/jquery.wiggle.min.js | 22 +- openecomp-be/tools/swagger-ui/lib/marked.js | 22 +- openecomp-be/tools/swagger-ui/lib/swagger-oauth.js | 20 - .../tools/swagger-ui/lib/underscore-min.js | 22 +- .../tools/swagger-ui/lib/underscore-min.map | 2 +- openecomp-be/tools/swagger-ui/pom.xml | 38 +- openecomp-be/tools/swagger-ui/swagger-ui.js | 26 +- openecomp-be/tools/swagger-ui/swagger-ui.min.js | 24 +- 83 files changed, 4354 insertions(+), 18436 deletions(-) create mode 100644 openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdf create mode 100644 openecomp-be/tools/build/scripts/zusammen-cassandra-commands.json create mode 100644 openecomp-be/tools/build/scripts/zusammen-generate-cassandra-init-cql.sh delete mode 100644 openecomp-be/tools/install/database/monitoring/component/ceilometer.ftl create mode 100644 openecomp-be/tools/install/database/monitoring/compute/ceilometer.ftl create mode 100644 openecomp-be/tools/install/database/monitoring/port/ceilometer.ftl create mode 100644 openecomp-be/tools/migration/1702_to_1707.sh create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/pom.xml create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/assembly/migration-lib-assembly.xml create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/MigrationMain.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ComponentConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/EntitlementPoolConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/FeatureGroupConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LKGConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LicenseAgreementConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/MibConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NetworkConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NicConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/OrchestrationTemplateCandidateConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ProcessConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VlmConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspInformationConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceArtifactConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceTemplateConvertor.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ComponentCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/EntitlementPoolCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/FeatureGroupCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LKGCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LicenseAgreementCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/MibCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NetworkCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NicCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/OrchestrationTemplateCandidateCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ProcessCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceArtifactCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceTemplateCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorLicenseModelCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorSoftwareProductInfoLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VersionInfoCassandraLoader.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VspInformation.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ElementHandler.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ItemHandler.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/Utils.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarker.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarkerEntity.java create mode 100644 openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/resources/logback.xml create mode 100644 openecomp-be/tools/migration/cassandra2zusammen.sh delete mode 100644 openecomp-be/tools/swagger-ui/api-docs/api.html delete mode 100644 openecomp-be/tools/swagger-ui/api-docs/api.json (limited to 'openecomp-be/tools') diff --git a/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py b/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py index 7d6e32e4a8..7f513afe86 100644 --- a/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py +++ b/openecomp-be/tools/build/scripts/action_library_client/action_library_client.py @@ -4,7 +4,7 @@ # # action_library_client.py # -# A command-line client for the SDC Action Library. +# A command-line client for the ASDC Action Library. # # # Usage: @@ -60,14 +60,14 @@ # - ALC_HTTP_INSECURE - allow untrusted SSL (server) connections. # - ALC_TIMEOUT_SECONDS - invocation (e.g. HTTP) timeout in seconds. # - ALC_JSON_DELIMITER - JSON delimiter in ouput. -# - ALC_ECOMP_INSTANCE_ID - X-ECOMP-InstanceID header +# - ALC_ECOMP_INSTANCE_ID - X-OPENECOMP-InstanceID header # # Configuration by 0600-mode INI file (section "action_library_client") is preferred. # # See: # http://10.147.97.199:8080/api-docs/ - REST API Swagger docs # https://www.python.org/dev/peps/pep-0008/ - style guide -# ../doc/SDC_Action_Lib_API_AID_1610_13.pdf - REST API dev guide +# ../doc/ASDC_Action_Lib_API_AID_1610_13.pdf - REST API dev guide # # Version history: # - 1.0.0 November 28th 2016, LP, initial impl. @@ -102,7 +102,7 @@ class Constants(object): VERSION = "1.1.0" APPLICATION = "action_library_client" ACTIONS_URI = "onboarding-api/workflow/v1.0/actions" - ECOMP_INSTANCE_ID = "sdc_alc" + ECOMP_INSTANCE_ID = "asdc_alc" TIMEOUT_SECONDS_DEFAULT = 30 JSON_DELIMITER_DEFAULT = "----------" LOG_FORMAT = "%(name)s\t%(levelname)s\t%(asctime)s\t%(message)s" @@ -428,8 +428,8 @@ class NativeRESTClient(IRESTClient): "Content-Type": "application/json", "Accept": "application/json", "Authorization": "Basic {0}".format(self.get_basic_credentials()), - "X-ECOMP-InstanceID": Constants.ECOMP_INSTANCE_ID, - "X-ECOMP-RequestID": IRESTClient.new_uuid() + "X-OPENECOMP-InstanceID": Constants.ECOMP_INSTANCE_ID, + "X-OPENECOMP-RequestID": IRESTClient.new_uuid() } handler = urllib2.HTTPHandler @@ -520,8 +520,8 @@ class CURLRESTClient(IRESTClient): cmd.extend(["--header", "Accept: application/json"]) cmd.extend(["--header", "Content-Type: application/json"]) cmd.extend(["--header", "Authorization: Basic {0}".format(self.get_basic_credentials())]) - cmd.extend(["--header", "X-ECOMP-InstanceID: {0}".format(Constants.ECOMP_INSTANCE_ID)]) - cmd.extend(["--header", "X-ECOMP-RequestID: {0}".format(IRESTClient.new_uuid())]) + cmd.extend(["--header", "X-OPENECOMP-InstanceID: {0}".format(Constants.ECOMP_INSTANCE_ID)]) + cmd.extend(["--header", "X-OPENECOMP-RequestID: {0}".format(IRESTClient.new_uuid())]) if extra_args: for extra_arg in extra_args: cmd.append(extra_arg) diff --git a/openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdf b/openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdf new file mode 100644 index 0000000000..966cbd9447 Binary files /dev/null and b/openecomp-be/tools/build/scripts/action_library_client/doc/ASDC_Action_Lib_API_AID_1610_13.pdf differ diff --git a/openecomp-be/tools/build/scripts/cassandra-commands.json b/openecomp-be/tools/build/scripts/cassandra-commands.json index 8354ff2532..3a606241bd 100644 --- a/openecomp-be/tools/build/scripts/cassandra-commands.json +++ b/openecomp-be/tools/build/scripts/cassandra-commands.json @@ -12,12 +12,12 @@ "feature_group": "CREATE TABLE IF NOT EXISTS feature_group (vlm_id text, version frozen, fg_id text, name text, description text, part_num text, ep_ids set, lkg_ids set, ref_la_ids set, PRIMARY KEY ((vlm_id, version), fg_id))", "license_key_group": "CREATE TABLE IF NOT EXISTS license_key_group (vlm_id text, version frozen, lkg_id text,name text,description text, type text, operational_scope frozen, ref_fg_ids set, version_uuid text, PRIMARY KEY ((vlm_id, version), lkg_id))", "entitlement_pool": "CREATE TABLE IF NOT EXISTS entitlement_pool (vlm_id text, version frozen, ep_id text,name text,description text,threshold float,threshold_unit text,entitlement_metric frozen,increments text,aggregation_func frozen, operational_scope frozen, time frozen,manufacturer_ref_num text,ref_fg_ids set, version_uuid text, PRIMARY KEY ((vlm_id, version), ep_id))", - "vsp_information": "CREATE TABLE IF NOT EXISTS vsp_information (VSP_ID text, version frozen, NAME text,DESCRIPTION text,CATEGORY text,SUB_CATEGORY text,ICON text,PACKAGE_NAME text,PACKAGE_VERSION text,vendor_name text, vendor_id text,LICENSE_AGREEMENT text,FEATURE_GROUPS list,VALIDATION_DATA text,CONTENT_DATA blob, questionnaire_data text, vlm_version frozen, PRIMARY KEY ((VSP_ID, version)))", + "vsp_information": "CREATE TABLE IF NOT EXISTS vsp_information (VSP_ID text, version frozen, NAME text,DESCRIPTION text,CATEGORY text,SUB_CATEGORY text,ICON text,PACKAGE_NAME text,PACKAGE_VERSION text,vendor_name text, vendor_id text,LICENSE_AGREEMENT text,FEATURE_GROUPS list,VALIDATION_DATA text,CONTENT_DATA blob, questionnaire_data text, vlm_version frozen, is_old_version text, PRIMARY KEY ((VSP_ID, version)))", "package_details": "CREATE TABLE IF NOT EXISTS package_details (VSP_ID text, version frozen,DISPLAY_NAME text,vsp_name text,vsp_description text,VENDOR_NAME text,CATEGORY text,SUB_CATEGORY text,VENDOR_RELEASE text,PACKAGE_CHECKSUM text,PACKAGE_TYPE text,TRANSLATE_CONTENT blob,PRIMARY KEY ((VSP_ID, version)))", "vsp_network": "CREATE TABLE IF NOT EXISTS vsp_network (vsp_id text, version frozen, network_id text, composition_data text, questionnaire_data text, PRIMARY KEY ((vsp_id, version), network_id))", "vsp_component": "CREATE TABLE IF NOT EXISTS vsp_component (vsp_id text, version frozen, component_id text, composition_data text, questionnaire_data text, PRIMARY KEY ((vsp_id, version), component_id))", "vsp_component_nic": "CREATE TABLE IF NOT EXISTS vsp_component_nic (vsp_id text, version frozen, component_id text, nic_id text, composition_data text, questionnaire_data text, PRIMARY KEY ((vsp_id, version), component_id, nic_id))", - "vsp_process" : "CREATE TABLE IF NOT EXISTS vsp_process (vsp_id text, version frozen, component_id text, process_id text, name text, description text, artifact_name text, artifact blob, PRIMARY KEY ((vsp_id, version), component_id, process_id))", + "vsp_process" : "CREATE TABLE IF NOT EXISTS vsp_process (vsp_id text, version frozen, component_id text, process_id text, name text, description text, type text, artifact_name text, artifact blob, PRIMARY KEY ((vsp_id, version), component_id, process_id))", "vsp_service_artifact" : "CREATE TABLE IF NOT EXISTS vsp_service_artifact (vsp_id text, version frozen, name text, content_data blob, PRIMARY KEY ((vsp_id, version), name))", "vsp_service_template" : "CREATE TABLE IF NOT EXISTS vsp_service_template (vsp_id text, version frozen, base_name text static, name text, content_data blob, PRIMARY KEY ((vsp_id, version), name))", "vsp_enriched_service_template" : "CREATE TABLE IF NOT EXISTS vsp_enriched_service_template (vsp_id text, version frozen, base_name text static, name text, content_data blob, PRIMARY KEY ((vsp_id, version), name))", @@ -32,7 +32,11 @@ "ecomp_component": "CREATE TABLE IF NOT EXISTS dox.ecompcomponent(id text PRIMARY KEY, name text)", "vsp_component_artifact": "CREATE TABLE IF NOT EXISTS vsp_component_artifact (vsp_id text, version frozen, component_id text, artifact_type text, artifact_id text, name text, description text, artifact blob, PRIMARY KEY ((vsp_id, version), component_id, artifact_type, artifact_id))", "name_index": "CREATE INDEX IF NOT EXISTS action_name ON dox.Action (name)", - "action_artifact":"CREATE TABLE IF NOT EXISTS action_artifact(artifactuuid text, effective_version int, artifact blob, PRIMARY KEY(artifactuuid, effective_version)) WITH CLUSTERING ORDER BY (effective_version DESC)" + "action_artifact":"CREATE TABLE IF NOT EXISTS action_artifact(artifactuuid text, effective_version int, artifact blob, PRIMARY KEY(artifactuuid, effective_version)) WITH CLUSTERING ORDER BY (effective_version DESC)", + "vsp_orchestration_template_candidate" : "CREATE TABLE IF NOT EXISTS vsp_orchestration_template_candidate (vsp_id text, version frozen, files_data_structure text, content_data blob, PRIMARY KEY ((vsp_id, version)))", + "vsp_component_dependency_model" : "CREATE TABLE IF NOT EXISTS vsp_component_dependency_model (vsp_id text, version frozen, dependency_id text, sourcecomponent_id text, targetcomponent_id text, relation text, PRIMARY KEY ((vsp_id, version), dependency_id))", + "activity_log" : "CREATE TABLE IF NOT EXISTS activity_log (item_id text, version_id text, activity_id text, type text, user text, timestamp timestamp, success boolean, message text, comment text, PRIMARY KEY (item_id, version_id, activity_id))", + "migration": "CREATE TABLE IF NOT EXISTS migration (id text, ismigrated boolean, primary key(id))" }, "drop": { "version_info": "DROP TABLE IF EXISTS version_info", @@ -65,12 +69,21 @@ "name_index" : "DROP INDEX IF EXISTS dox.action_name", "ecomp_component": "DROP TABLE IF EXISTS dox.ecompcomponent", "vsp_component_artifact": "DROP TABLE IF EXISTS dox.vsp_component_artifact", - "action_artifact":"DROP TABLE IF EXISTS action_artifact" + "action_artifact":"DROP TABLE IF EXISTS action_artifact", + "vsp_orchestration_template_candidate":"DROP TABLE IF EXISTS vsp_orchestration_template_candidate", + "vsp_component_dependency_model":"DROP TABLE IF EXISTS vsp_component_dependency_model", + "activity_log": "DROP TABLE IF EXISTS activity_log", + "migration": "DROP TABLE IF EXISTS migration" }, "alter": { "vsp_information": "ALTER TABLE vsp_information ADD questionnaire_data text", "vsp_information_1": "ALTER TABLE vsp_information ADD vlm_version frozen", + "vsp_process": "ALTER TABLE vsp_process ADD type text", "entitlement_pool": "alter table entitlement_pool ADD version_uuid text", - "license_key_group": "alter table license_key_group ADD version_uuid text" + "license_key_group": "alter table license_key_group ADD version_uuid text", + "application_config": "delete from application_config where namespace='vsp.monitoring' and key = 'component.ceilometer'" + }, + "actions": { + "truncate_configuration": "truncate configuration" } } diff --git a/openecomp-be/tools/build/scripts/generate-application-config-insert-cql.sh b/openecomp-be/tools/build/scripts/generate-application-config-insert-cql.sh index e4e1ff0075..ad3e6ad43d 100644 --- a/openecomp-be/tools/build/scripts/generate-application-config-insert-cql.sh +++ b/openecomp-be/tools/build/scripts/generate-application-config-insert-cql.sh @@ -15,7 +15,7 @@ ### ### ### Author: Avi Ziv -### Version 1.0 for OPENECOMP +### Version 1.0 ### Date: 10 Aug 2016 ### ############################################################################## diff --git a/openecomp-be/tools/build/scripts/generate-cassandra-alter-cql.sh b/openecomp-be/tools/build/scripts/generate-cassandra-alter-cql.sh index 827b3ab330..1f3ae3becb 100644 --- a/openecomp-be/tools/build/scripts/generate-cassandra-alter-cql.sh +++ b/openecomp-be/tools/build/scripts/generate-cassandra-alter-cql.sh @@ -12,7 +12,7 @@ ### ### ### Author: Avi Ziv -### Version 2.0 for OPENECOMP +### Version 2.0 ### Date: 21 Sep 2016 ### ############################################################################## diff --git a/openecomp-be/tools/build/scripts/generate-cassandra-drop-cql.sh b/openecomp-be/tools/build/scripts/generate-cassandra-drop-cql.sh index ddbf846b30..f0f1da0eaf 100644 --- a/openecomp-be/tools/build/scripts/generate-cassandra-drop-cql.sh +++ b/openecomp-be/tools/build/scripts/generate-cassandra-drop-cql.sh @@ -12,7 +12,7 @@ ### ### ### Author: Avi Ziv -### Version 1.0 for OPENECOMP +### Version 1.0 ### Date: 21 Sep 2016 ### ############################################################################## diff --git a/openecomp-be/tools/build/scripts/generate-cassandra-init-cql.sh b/openecomp-be/tools/build/scripts/generate-cassandra-init-cql.sh index 65af5a51ae..0221b20a43 100644 --- a/openecomp-be/tools/build/scripts/generate-cassandra-init-cql.sh +++ b/openecomp-be/tools/build/scripts/generate-cassandra-init-cql.sh @@ -12,8 +12,8 @@ ### ### ### Author: Avi Ziv -### Version 2.0 for OPENECOMP -### Date: 21 Sep 2016, added support for keyspace yes/no for OPENECOMP DevOps build +### Version 2.0 +### Date: 21 Sep 2016, added support for keyspace yes/no for DevOps build ### ############################################################################## @@ -31,7 +31,6 @@ main() fi echo "USE dox;" $RUN_PATH/parse-json.py -t create -f $1 - } #### Functions - End #### diff --git a/openecomp-be/tools/build/scripts/zusammen-cassandra-commands.json b/openecomp-be/tools/build/scripts/zusammen-cassandra-commands.json new file mode 100644 index 0000000000..1395fec8f1 --- /dev/null +++ b/openecomp-be/tools/build/scripts/zusammen-cassandra-commands.json @@ -0,0 +1,20 @@ +{ + "create": { + "item": "CREATE TABLE IF NOT EXISTS item (item_id text primary key, item_info text, creation_time timestamp, modification_time timestamp)", + "version": "CREATE TABLE IF NOT EXISTS version (space text, item_id text, version_id text,base_version_id text,info text,relations text,creation_time timestamp,modification_time timestamp,PRIMARY KEY (( space, item_id ), version_id))", + "version_elements": "CREATE TABLE IF NOT EXISTS version_elements (space text,item_id text,version_id text,element_ids set,PRIMARY KEY (( space, item_id, version_id )))", + "element_namespace": "CREATE TABLE IF NOT EXISTS element_namespace (space text, item_id text, element_id text, namespace text, PRIMARY KEY ((space, item_id, element_id)))", + "element": "CREATE TABLE IF NOT EXISTS element (space text,item_id text,version_id text,element_id text,parent_id text,namespace text,info text,relations text,data blob,searchable_data blob,visualization blob,sub_element_ids set,PRIMARY KEY (( space, item_id, version_id, element_id )))" + }, + "drop": { + "item": "DROP TABLE IF EXISTS item", + "version": "DROP TABLE IF EXISTS version", + "version_elements": "DROP TABLE IF EXISTS version_elements", + "element_namespace": "DROP TABLE IF EXISTS element_namespace", + "element": "DROP TABLE IF EXISTS element" + }, + "alter": { + }, + "actions": { + } +} diff --git a/openecomp-be/tools/build/scripts/zusammen-generate-cassandra-init-cql.sh b/openecomp-be/tools/build/scripts/zusammen-generate-cassandra-init-cql.sh new file mode 100644 index 0000000000..b215fb3ce7 --- /dev/null +++ b/openecomp-be/tools/build/scripts/zusammen-generate-cassandra-init-cql.sh @@ -0,0 +1,44 @@ +#!/bin/sh + +############################################################################## +### +### zusammen-generate-cassandra-init-cql.sh +### +### A script that generates the CQL commands of CREATE for the Cassnadra init for the Zusammen keyspace. +### +### Usage: +### +### ./zusammen-generate-cassandra-init-cql.sh cassandra-commands.json +### +### +### Author: Avi Ziv +### Version 1.0 +### Date: 23 Apr 2017, first version for Zusammen +### +############################################################################## + +#GLOBALS +KEYSPACE_ZUSAMMEN=zusammen_dox + +RUN_PATH=$(cd "$(dirname "$0")" && pwd) + +#### Functions - Start #### +usage() { echo "Usage: $0 keyspace yes/no, for example: $0 cassandra-commands.json keyspace yes" 1>&2; exit 1; } + +main() +{ + if [ $3 == 'yes' ]; then + echo "CREATE KEYSPACE IF NOT EXISTS $KEYSPACE_ZUSAMMEN WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };" + fi + echo "USE $KEYSPACE_ZUSAMMEN;" + $RUN_PATH/parse-json.py -t create -f $1 +} + +#### Functions - End #### + +# Check arguements +if [ "$#" -lt 1 ] || [ "$#" -gt 3 ]; then + usage +fi + +main $1 $2 $3 diff --git a/openecomp-be/tools/install/database/monitoring/component/ceilometer.ftl b/openecomp-be/tools/install/database/monitoring/component/ceilometer.ftl deleted file mode 100644 index 6cf3dfdb66..0000000000 --- a/openecomp-be/tools/install/database/monitoring/component/ceilometer.ftl +++ /dev/null @@ -1,67 +0,0 @@ -{ - "ceilometerInfoList": [ - { - "name": "instance", - "type": "Gauge", - "unit": "instance", - "category": "compute", - "description": "Existence of instance" - }, - { - "name": "instance:type", - "type": "Gauge", - "unit": "instance", - "category": "compute", - "description": "Existence of instance (OpenStack types)" - }, - { - "name": "memory", - "type": "Gauge", - "unit": "MB", - "category": "compute", - "description": "Volume of RAM allocated to the instance" - }, - { - "name": "memory.usage", - "type": "Gauge", - "unit": "MB", - "category": "compute", - "description": "Volume of RAM used by the instance from the amount of its allocated memory" - }, - { - "name": "memory.resident", - "type": "Gauge", - "unit": "MB", - "category": "compute", - "description": "Volume of RAM used by the instance on the physical machine" - }, - { - "name": "cpu", - "type": "Cumulative", - "unit": "ns", - "category": "compute", - "description": "CPU time used" - }, - { - "name": "cpu_util", - "type": "Gauge", - "unit": "%", - "category": "compute", - "description": "Average CPU utilization" - }, - { - "name": "cpu.delta", - "type": "Delta", - "unit": "ns", - "category": "compute", - "description": "CPU time used since previous datapoint" - }, - { - "name": "vcpus", - "type": "Gauge", - "unit": "ms", - "category": "compute", - "description": "Average disk latency" - } - ] -} \ No newline at end of file diff --git a/openecomp-be/tools/install/database/monitoring/compute/ceilometer.ftl b/openecomp-be/tools/install/database/monitoring/compute/ceilometer.ftl new file mode 100644 index 0000000000..8168f745de --- /dev/null +++ b/openecomp-be/tools/install/database/monitoring/compute/ceilometer.ftl @@ -0,0 +1,249 @@ +{ + "ceilometerMetricList": [ + { + "name": "instance", + "type": "Gauge", + "unit": "instance", + "category": "compute", + "description": "Existence of instance" + }, + { + "name": "memory", + "type": "Gauge", + "unit": "MB", + "category": "compute", + "description": "Volume of RAM allocated to the instance" + }, + { + "name": "memory.usage", + "type": "Gauge", + "unit": "MB", + "category": "compute", + "description": "Volume of RAM used by the instance from the amount of its allocated memory" + }, + { + "name": "memory.resident", + "type": "Gauge", + "unit": "MB", + "category": "compute", + "description": "Volume of RAM used by the instance on the physical machine" + }, + { + "name": "cpu", + "type": "Cumulative", + "unit": "ns", + "category": "compute", + "description": "CPU time used" + }, + { + "name": "cpu_util", + "type": "Gauge", + "unit": "%", + "category": "compute", + "description": "Average CPU utilization" + }, + { + "name": "cpu.delta", + "type": "Delta", + "unit": "ns", + "category": "compute", + "description": "CPU time used since previous datapoint" + }, + { + "name": "vcpus", + "type": "Gauge", + "unit": "vcpu", + "category": "compute", + "description": "Number of virtual CPUs allocated to the instance" + }, + { + "name": "disk.latency", + "type": "Gauge", + "unit": "ms", + "category": "disk", + "description": "Average disk latency" + }, + { + "name": "disk.iops", + "type": "Gauge", + "unit": "count/s", + "category": "disk", + "description": "Average disk iops" + }, + { + "name": "disk.device.latency", + "type": "Gauge", + "unit": "ms", + "category": "disk", + "description": "Average disk latency per device" + }, + { + "name": "disk.device.iops", + "type": "Gauge", + "unit": "count/s", + "category": "disk", + "description": "Average disk iops per device" + }, + { + "name": "disk.capacity", + "type": "Gauge", + "unit": "B", + "category": "disk", + "description": "The amount of disk that the instance can see" + }, + { + "name": "disk.allocation", + "type": "Gauge", + "unit": "B", + "category": "disk", + "description": "The amount of disk occupied by the instance on the host machine" + }, + { + "name": "disk.usage", + "type": "Gauge", + "unit": "B", + "category": "disk", + "description": "The physical size in bytes of the image container on the host" + }, + { + "name": "disk.device.capacity", + "type": "Gauge", + "unit": "B", + "category": "disk", + "description": "The amount of disk per device that the instance can see" + }, + { + "name": "disk.device.allocation", + "type": "Gauge", + "unit": "B", + "category": "disk", + "description": "The amount of disk per device occupied by the instance on the host machine" + }, + { + "name": "disk.device.usage", + "type": "Gauge", + "unit": "B", + "category": "disk", + "description": "The physical size in bytes of the image container on the host per device" + }, + { + "name": "disk.device.read.requests", + "type": "Cumulative", + "unit": "request", + "category": "disk", + "description": "Number of read requests" + }, + { + "name": "disk.device.read.requests.rate", + "type": "Gauge", + "unit": "request/s", + "category": "disk", + "description": "Average rate of read requests" + }, + { + "name": "disk.device.write.requests", + "type": "Cumulative", + "unit": "request", + "category": "disk", + "description": "Number of write requests" + }, + { + "name": "disk.device.write.requests.rate", + "type": "Gauge", + "unit": "request/s", + "category": "disk", + "description": "Average rate of write requests" + }, + { + "name": "disk.device.read.bytes", + "type": "Cumulative", + "unit": "B", + "category": "disk", + "description": "Volume of reads" + }, + { + "name": "disk.device.read.bytes.rate", + "type": "Gauge", + "unit": "B/s", + "category": "disk", + "description": "Average rate of reads" + }, + { + "name": "disk.device.write.bytes", + "type": "Cumulative", + "unit": "B", + "category": "disk", + "description": "Volume of writes" + }, + { + "name": "disk.device.write.bytes.rate", + "type": "Gauge", + "unit": "B/s", + "category": "disk", + "description": "Average rate of writes" + }, + { + "name": "disk.write.requests", + "type": "Cumulative", + "unit": "request", + "category": "compute", + "description": "Number of write requests" + }, + { + "name": "disk.write.requests.rate", + "type": "Gauge", + "unit": "request/s", + "category": "compute", + "description": "Average rate of write requests" + }, + { + "name": "disk.read.bytes", + "type": "Cumulative", + "unit": "B", + "category": "compute", + "description": "Volume of reads" + }, + { + "name": "disk.read.bytes.rate", + "type": "Gauge", + "unit": "B/s", + "category": "compute", + "description": "Average rate of reads" + }, + { + "name": "disk.write.bytes", + "type": "Cumulative", + "unit": "B", + "category": "compute", + "description": "Volume of writes" + }, + { + "name": "disk.write.bytes.rate", + "type": "Gauge", + "unit": "B/s", + "category": "compute", + "description": "Average rate of writes" + }, + { + "name": "disk.read.requests", + "type": "Cumulative", + "unit": "request", + "category": "compute", + "description": "Number of read requests" + }, + { + "name": "disk.root.size", + "type": "Gauge", + "unit": "GB", + "category": "compute", + "description": "Size of root disk" + }, + { + "name": "disk.ephemeral.size", + "type": "Gauge", + "unit": "GB", + "category": "compute", + "description": "Size of ephemeral disk" + } + ] +} \ No newline at end of file diff --git a/openecomp-be/tools/install/database/monitoring/port/ceilometer.ftl b/openecomp-be/tools/install/database/monitoring/port/ceilometer.ftl new file mode 100644 index 0000000000..b741354144 --- /dev/null +++ b/openecomp-be/tools/install/database/monitoring/port/ceilometer.ftl @@ -0,0 +1,60 @@ +{ + "ceilometerMetricList": [ + { + "name": "network.incoming.bytes", + "type": "Cumulative", + "unit": "B", + "category": "network", + "description": "Number of incoming bytes" + }, + { + "name": "network.incoming.bytes.rate", + "type": "Gauge", + "unit": "B/s", + "category": "network", + "description": "Average rate of incoming bytes" + }, + { + "name": "network.outgoing.bytes", + "type": "Cumulative", + "unit": "B", + "category": "network", + "description": "Number of outgoing bytes" + }, + { + "name": "network.outgoing.bytes.rate", + "type": "Gauge", + "unit": "B/s", + "category": "network", + "description": "Average rate of outgoing bytes" + }, + { + "name": "network.incoming.packets", + "type": "Cumulative", + "unit": "packet", + "category": "network", + "description": "Number of incoming packets" + }, + { + "name": "network.incoming.packets.rate", + "type": "Gauge", + "unit": "packet/s", + "category": "network", + "description": "Average rate of incoming packets" + }, + { + "name": "network.outpoing.packets", + "type": "Cumulative", + "unit": "packet", + "category": "network", + "description": "Number of outgoing packets" + }, + { + "name": "network.outgoing.packets.rate", + "type": "Gauge", + "unit": "packet/s", + "category": "network", + "description": "Average rate of outgoing packets" + } + ] +} \ No newline at end of file diff --git a/openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl b/openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl index 1c0cb4eb8a..e70deffc89 100644 --- a/openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl +++ b/openecomp-be/tools/install/database/schemaTemplates/composition/component.ftl @@ -16,6 +16,9 @@ ], "default": "${component.displayName}" }, + "vfcCode": { + "type": "string" + }, "description": { "type": "string" } diff --git a/openecomp-be/tools/install/database/schemaTemplates/questionnaire/component.ftl b/openecomp-be/tools/install/database/schemaTemplates/questionnaire/component.ftl index 540afca430..6e588eb22a 100644 --- a/openecomp-be/tools/install/database/schemaTemplates/questionnaire/component.ftl +++ b/openecomp-be/tools/install/database/schemaTemplates/questionnaire/component.ftl @@ -93,7 +93,7 @@ }, "vmCloneUsage": { "type": "string", - "maximum": 300 + "maxLength": 300 } }, "additionalProperties": false @@ -198,6 +198,16 @@ "highAvailabilityAndLoadBalancing": { "type": "object", "properties": { + "isComponentMandatory": { + "type": "string", + "enum": ["","YES", "NO"], + "default": "" + }, + "highAvailabilityMode": { + "type": "string", + "enum": ["","geo-activeactive", "geo-activestandby", "local-activeactive", "local-activestandby"], + "default": "" + }, "failureLoadDistribution": { "type": "string", "maxLength": 1000 @@ -274,8 +284,8 @@ "backupNIC": { "type": "string", "enum": [ - "", <#if nicNames??><#list nicNames as nicName> - "${nicName}"<#sep>, + ""<#if nicNames??><#list nicNames as nicName> + , "${nicName}" ], "default": "" } @@ -324,4 +334,4 @@ } }, "additionalProperties": false -} \ No newline at end of file +} diff --git a/openecomp-be/tools/install/database/schemaTemplates/questionnaire/vsp.ftl b/openecomp-be/tools/install/database/schemaTemplates/questionnaire/vsp.ftl index 6b1502c4a2..96f77b7f23 100644 --- a/openecomp-be/tools/install/database/schemaTemplates/questionnaire/vsp.ftl +++ b/openecomp-be/tools/install/database/schemaTemplates/questionnaire/vsp.ftl @@ -38,15 +38,15 @@ "type": "string", "enum": [ "", - "1", - "2", - "3", - "4", - "5", - "6", - "7", - "8", - "9" + "Alphareta", + "Birmingham", + "Dallas", + "Fairfield CA", + "Hayward CA", + "Lisle", + "Mission", + "San Diego", + "Secaucus" ], "default": "" } diff --git a/openecomp-be/tools/migration/1607_to_1610.py b/openecomp-be/tools/migration/1607_to_1610.py index 2cec48b04d..f46cb3a4b8 100644 --- a/openecomp-be/tools/migration/1607_to_1610.py +++ b/openecomp-be/tools/migration/1607_to_1610.py @@ -52,7 +52,7 @@ def main(argv): Service.server(host) webHandler=WebHandler(host=host, port=DEFAULT_PORT) - response, headers = webHandler.rest(url=VSP_LIST_PATH, method='GET', data=None, attuid=username) + response, headers = webHandler.rest(url=VSP_LIST_PATH, method='GET', data=None, userId=username) jResult = json.loads(response) jSrvices = jResult["results"] reportFileName = 'upgradereport.csv' #datetime.now() @@ -137,24 +137,24 @@ class Service(object): def line(self): return '{0},{1},{2},{3},{4}\n'.format(self.serviceName, self.vspId ,self.vendorName, self.lockingUser, self.uploadStatus) - def Checkout(self, attuid): + def Checkout(self, userId): # /v1.0/vendor-software-products/{vspId}/actions urlpath=VSP_ACTIONS_PATH.format(vspId=self.vspId) - response, headers = self.webHandler.rest( url=urlpath, method='PUT', data={"action": "Checkout"}, attuid=attuid) - self.lockingUser=attuid #we will later use this user to checkin + response, headers = self.webHandler.rest( url=urlpath, method='PUT', data={"action": "Checkout"}, userId=userId) + self.lockingUser=userId #we will later use this user to checkin return response def Checkin(self): # /v1.0/vendor-software-products/{vspId}/actions urlpath = VSP_ACTIONS_PATH.format(vspId=self.vspId) - response, headers = self.webHandler.rest(url=urlpath, method='PUT', data={"action": "Checkin"}, attuid=self.lockingUser) + response, headers = self.webHandler.rest(url=urlpath, method='PUT', data={"action": "Checkin"}, userId=self.lockingUser) return response def Get(self): # /v1.0/vendor-software-products/{vspId} urlpath = VSP_GET_URL.format(vspId=self.vspId) try: - response, headers = self.webHandler.rest(url=urlpath, method='GET', data=None, attuid=self.lockingUser) + response, headers = self.webHandler.rest(url=urlpath, method='GET', data=None, userId=self.lockingUser) except HttpError as e: print e.message response = e.status @@ -178,7 +178,7 @@ class Service(object): def DownloadHeat(self): urlpath=VSP_DOWNLOAD_PATH.format(vspId=self.vspId) try: - response, headers = self.webHandler.rest(url=urlpath, method='Get', data=None, attuid=self.lockingUser, accept='application/octet-stream') + response, headers = self.webHandler.rest(url=urlpath, method='Get', data=None, userId=self.lockingUser, accept='application/octet-stream') except HttpError as e: if e.status == 404: return "" @@ -204,12 +204,12 @@ class WebHandler(object): self.host = host self.port = port - def rest(self, url, method, data, attuid, accept='application/json', content_type='application/json'): + def rest(self, url, method, data, userId, accept='application/json', content_type='application/json'): connection = httplib.HTTPConnection(host=self.host, port=self.port) try: headers = {'Content-Type':content_type ,'Accept':accept} - headers['USER_ID'] = attuid + headers['USER_ID'] = userId connection.request(method=method, headers=headers, body=json.dumps(data), url=url) response = connection.getresponse() @@ -220,7 +220,7 @@ class WebHandler(object): finally: connection.close() - def post_multipart(self, scheme, selector, fields, files, attuid): + def post_multipart(self, scheme, selector, fields, files, userId): """ Post fields and files to an http host as multipart/form-data. fields is a sequence of (name, value) elements for regular form fields. @@ -236,7 +236,7 @@ class WebHandler(object): h.putheader('content-type', content_type) h.putheader('content-length', str(len(body))) h.putheader('Accept', 'application/json') - h.putheader('USER_ID', attuid) + h.putheader('USER_ID', userId) h.endheaders() h.send(body) diff --git a/openecomp-be/tools/migration/1702_to_1707.sh b/openecomp-be/tools/migration/1702_to_1707.sh new file mode 100644 index 0000000000..587d045f03 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +########################################################################################################### +# script name - 1702_to_1707.sh +# run script - ./1702_to_1707.sh +# this script replaces tosca namespace to org.openecomp in translated files from 1702 version +########################################################################################################### + + +# change exist package and service templates in db +java -Dlog.home=/apps/jetty/base/be/logs -Dconfiguration.yaml=/apps/jetty/base/be/config/catalog-be/configuration.yaml -jar openecomp-migration-lib-1707.0.0-SNAPSHOT.jar org.openecomp.sdc.migration.ToscaNamespaceMigration + +STATUS="${?}" +echo "${STATUS}" +echo "All log messages for the migration proccess are in /apps/jetty/base/be/logs/ASDC/ASDC-BE/migration_debug.log" diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/pom.xml b/openecomp-be/tools/migration/1702_to_1707_zusammen/pom.xml new file mode 100644 index 0000000000..145a3fb4ab --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/pom.xml @@ -0,0 +1,241 @@ + + 4.0.0 + + + + 2.4.7 + 2.7.7 + + + + + + openecomp-zusammen-migration + + + org.openecomp.sdc + openecomp-sdc-vendor-software-product-api + ${project.version} + + + openecomp-zusammen-plugin + org.openecomp.core + ${project.version} + + + org.openecomp.sdc + openecomp-sdc-vendor-software-product-core + ${project.version} + + + org.openecomp.sdc + openecomp-sdc-vendor-license-api + ${project.version} + + + org.openecomp.sdc + openecomp-sdc-model-impl + ${project.version} + + + org.openecomp.core + openecomp-zusammen-core + ${project.version} + + + com.amdocs.zusammen.plugin + zusammen-state-store-cassandra-plugin + 0.0.1-SNAPSHOT + + + org.hibernate + hibernate-validator + RELEASE + + + org.openecomp.sdc + openecomp-sdc-vendor-license-core + ${project.version} + + + openecomp-zusammen-migration + org.openecomp.core.migration + 1.1.0-SNAPSHOT + + org.openecomp.sdc + openecomp-sdc-lib + ../../../lib + 1.1.0-SNAPSHOT + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 2.5.1 + true + + 1.8 + 1.8 + + + + + org.codehaus.mojo + license-maven-plugin + 1.10 + + false + + ============LICENSE_START======================================================= + + + ============LICENSE_END========================================================= + + + ================================================================================ + + apache_v2 + 2017 + AT&T Intellectual Property. All rights reserved. + + SDC + true + true + true + true + false + + **/*.java + **/*.js + **/*.ts + + + src + app + server-mock + typings + + + + + first + + update-file-header + + + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 2.8 + + + copy-dependencies + install + + copy-dependencies + + + ${project.build.directory}/lib + false + false + true + + + + + + + + org.apache.maven.plugins + maven-jar-plugin + 2.4 + + + package + + + + + + true + custom + + lib/${artifact.artifactId}-${baseVersion}.${artifact.extension} + + org.openecomp.core.migration.MigrationMain + + + + lib/ + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.19.1 + + false + true + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + ant-test + package + + + + + + + run + + + + + + maven-assembly-plugin + ${mvn.assembly.version} + + + Generate assembly + install + + single + + + + + + ${basedir}/src/main/assembly/migration-lib-assembly.xml + + + openecomp-zusammen-migration-lib + + + + + + + diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/assembly/migration-lib-assembly.xml b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/assembly/migration-lib-assembly.xml new file mode 100644 index 0000000000..42296baa6e --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/assembly/migration-lib-assembly.xml @@ -0,0 +1,41 @@ + + + + zip + + + false + + + + + + ${basedir}/.. + + cassandra2zusammen.sh + + / + 0755 + + + ${basedir}/target + + + openecomp-zusammen*.jar + + + / + + + ${basedir}/target/lib + /lib + + + + diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/MigrationMain.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/MigrationMain.java new file mode 100644 index 0000000000..283c9cf25d --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/MigrationMain.java @@ -0,0 +1,485 @@ +package org.openecomp.core.migration; + +import com.amdocs.zusammen.datatypes.SessionContext; +import com.amdocs.zusammen.datatypes.UserInfo; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.impl.ItemCassandraDao; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.impl.VersionCassandraDao; +import org.openecomp.core.migration.convertors.ComponentConvertor; +import org.openecomp.core.migration.convertors.EntitlementPoolConvertor; +import org.openecomp.core.migration.convertors.FeatureGroupConvertor; +import org.openecomp.core.migration.convertors.LKGConvertor; +import org.openecomp.core.migration.convertors.LicenseAgreementConvertor; +import org.openecomp.core.migration.convertors.MibConvertor; +import org.openecomp.core.migration.convertors.NetworkConvertor; +import org.openecomp.core.migration.convertors.NicConvertor; +import org.openecomp.core.migration.convertors.OrchestrationTemplateCandidateConvertor; +import org.openecomp.core.migration.convertors.ProcessConvertor; +import org.openecomp.core.migration.convertors.VlmConvertor; +import org.openecomp.core.migration.convertors.VspInformationConvertor; +import org.openecomp.core.migration.convertors.VspServiceArtifactConvertor; +import org.openecomp.core.migration.convertors.VspServiceTemplateConvertor; +import org.openecomp.core.migration.loaders.ComponentCassandraLoader; +import org.openecomp.core.migration.loaders.EntitlementPoolCassandraLoader; +import org.openecomp.core.migration.loaders.FeatureGroupCassandraLoader; +import org.openecomp.core.migration.loaders.LKGCassandraLoader; +import org.openecomp.core.migration.loaders.LicenseAgreementCassandraLoader; +import org.openecomp.core.migration.loaders.MibCassandraLoader; +import org.openecomp.core.migration.loaders.NetworkCassandraLoader; +import org.openecomp.core.migration.loaders.NicCassandraLoader; +import org.openecomp.core.migration.loaders.OrchestrationTemplateCandidateCassandraLoader; +import org.openecomp.core.migration.loaders.ProcessCassandraLoader; +import org.openecomp.core.migration.loaders.ServiceArtifactCassandraLoader; +import org.openecomp.core.migration.loaders.ServiceTemplateCassandraLoader; +import org.openecomp.core.migration.loaders.VendorLicenseModelCassandraLoader; +import org.openecomp.core.migration.loaders.VendorSoftwareProductInfoLoader; +import org.openecomp.core.migration.loaders.VersionInfoCassandraLoader; +import org.openecomp.core.migration.loaders.VspInformation; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.core.migration.store.ItemHandler; +import org.openecomp.core.migration.util.marker.MigrationMarker; +import org.openecomp.core.model.types.ServiceArtifact; +import org.openecomp.core.model.types.ServiceTemplate; +import org.openecomp.core.zusammen.impl.CassandraConnectionInitializer; +import org.openecomp.core.zusammen.plugin.dao.impl.CassandraElementRepository; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity; +import org.openecomp.sdc.vendorlicense.dao.types.FeatureGroupEntity; +import org.openecomp.sdc.vendorlicense.dao.types.LicenseAgreementEntity; +import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity; +import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.MibEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NetworkEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NicEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ProcessEntity; +import org.openecomp.sdc.versioning.dao.types.Version; +import org.openecomp.sdc.versioning.dao.types.VersionInfoEntity; + +import java.time.Duration; +import java.time.Instant; +import java.util.Collection; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +import static org.openecomp.core.migration.util.Utils.printMessage; + +public class MigrationMain { + private static final String GLOBAL_USER = "GLOBAL_USER"; + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + private static int status = 0; + + public static Map versionInfoMap = new HashMap<>(); + + public static void main(String[] args) { + CassandraElementRepository cassandraElementRepository = new CassandraElementRepository(); + CassandraConnectionInitializer.setCassandraConnectionPropertiesToSystem(); + printMessage(logger, "Checking whether a migration has already been run."); + if (MigrationMarker.isMigrated()) { + printMessage(logger, "The DB has already been migrated, this script will now exit."); + return; + } + ItemCassandraDao itemCassandraDao = new ItemCassandraDao(); + VersionCassandraDao versionCassandraDao = new VersionCassandraDao(); + SessionContext context = new SessionContext(); + context.setUser(new UserInfo(GLOBAL_USER)); + context.setTenant("dox"); + printMessage(logger, "Starting migration.\n"); + Instant startTime = Instant.now(); + + migrateToZusammen(cassandraElementRepository, itemCassandraDao, versionCassandraDao, context); + + Instant stopTime = Instant.now(); + Duration duration = Duration.between(startTime, stopTime); + long minutesPart = duration.toMinutes(); + long secondsPart = duration.minusMinutes(minutesPart).getSeconds(); + + if (status == 0) { + MigrationMarker.markMigrated(); + } + printMessage(logger, + "Migration finished . Total run time was : " + minutesPart + ":" + secondsPart + + " minutes"); + System.exit(status); + } + + + private static void migrateToZusammen(CassandraElementRepository cassandraElementRepository, + ItemCassandraDao itemCassandraDao, + VersionCassandraDao versionCassandraDao, + SessionContext context) { + loadVersionInfo(); + + + try { + convertVsp(context, itemCassandraDao, versionCassandraDao, cassandraElementRepository); + printMessage(logger, "Converted VSPs\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for VSPs ,the error is :"); + e.printStackTrace(); + status = -1; + } + + try { + convertOrchestrationTemplateCandidate(context, cassandraElementRepository); + printMessage(logger, "Converted OrchestrationTemplateCandidates\n"); + } catch (Exception e) { + printMessage(logger, + "Could not perform migration for OrchestrationTemplateCandidates ,the error is :"); + e.printStackTrace(); + status = -1; + } + + + try { + convertComponent(context, cassandraElementRepository); + printMessage(logger, "Converted Components\n"); + } catch (Exception e) { + printMessage(logger, + "Could not perform migration for Components ,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertNic(context, cassandraElementRepository); + printMessage(logger, "Converted Nics\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for Nics ,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertNetwork(context, cassandraElementRepository); + printMessage(logger, "Converted Networks\n"); + } catch (Exception e) { + printMessage(logger, + "Could not perform migration for Networks ,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertMibs(context, cassandraElementRepository); + printMessage(logger, "Converted MIBs\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for MIBs,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertServiceArtifact(context, cassandraElementRepository); + printMessage(logger, "Converted Service Artifacts\n"); + } catch (Exception e) { + printMessage(logger, + "Could not perform migration for Service Artifacts,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertServiceTemplate(context, cassandraElementRepository); + printMessage(logger, "Converted Service Templates\n"); + } catch (Exception e) { + printMessage(logger, + "Could not perform migration for Service Templates,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertProcesses(context, cassandraElementRepository); + printMessage(logger, "Converted Processes\n"); + } catch (Exception e) { + printMessage(logger, + "Could not perform migration for Processes,the error is :"); + e.printStackTrace(); + status = -1; + } + + + try { + convertVlm(context, itemCassandraDao, versionCassandraDao, cassandraElementRepository); + printMessage(logger, "Converted VLMs\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for VLMs,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertLKG(context, cassandraElementRepository); + printMessage(logger, "Converted LKGs\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for LKGs,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertFeatureGroup(context, cassandraElementRepository); + printMessage(logger, "Converted Feature Groups\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for Feature Groups,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertEP(context, cassandraElementRepository); + printMessage(logger, "Converted EPs\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for EPs,the error is :"); + e.printStackTrace(); + status = -1; + } + try { + convertLicenseAgreement(context, cassandraElementRepository); + printMessage(logger, "Converted License Agreements\n"); + } catch (Exception e) { + printMessage(logger, "Could not perform migration for License Agreements,the error is :"); + e.printStackTrace(); + status = -1; + } + } + + private static void convertOrchestrationTemplateCandidate(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + OrchestrationTemplateCandidateCassandraLoader orchestrationTemplateCandidateCassandraLoader = + new OrchestrationTemplateCandidateCassandraLoader(); + + orchestrationTemplateCandidateCassandraLoader.list().stream() + .filter(entity -> needMigration(entity.getId(), entity.getVersion())) + .forEach(entity -> ElementHandler + .save(context, cassandraElementRepository, entity.getId(), entity.getVersion(), + OrchestrationTemplateCandidateConvertor + .convertOrchestrationTemplateCandidateToElement(entity))); + } + + private static void loadVersionInfo() { + + VersionInfoCassandraLoader versionInfoCassandraLoader = new VersionInfoCassandraLoader(); + Collection versions = + versionInfoCassandraLoader.list(); + + versions.forEach(versionInfoEntity -> versionInfoMap.put(versionInfoEntity.getEntityId + (), versionInfoEntity)); + + + } + + private static void convertMibs(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + MibCassandraLoader cassandraLoader = new MibCassandraLoader(); + Collection mibs = cassandraLoader.list(); + mibs.stream().filter(mibEntity -> needMigration(mibEntity.getVspId(), mibEntity.getVersion())) + .forEach + (mibEntity -> { + ElementHandler.save(context, cassandraElementRepository, + mibEntity + .getVspId(), mibEntity.getVersion(), + MibConvertor.convertMibToElement + (mibEntity)); + }); + } + + private static void convertProcesses(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + ProcessCassandraLoader cassandraLoader = new ProcessCassandraLoader(); + Collection processes = cassandraLoader.list(); + processes.stream() + .filter(processEntity -> needMigration(processEntity.getVspId(), processEntity.getVersion + ())).forEach(processEntity -> { + ElementHandler.save( + context, + cassandraElementRepository, + processEntity + .getId(), processEntity.getVersion(), + ProcessConvertor.convertProcessToElement(processEntity)); + }); + } + + private static void convertVsp(SessionContext context, ItemCassandraDao itemCassandraDao, + VersionCassandraDao versionCassandraDao, + CassandraElementRepository cassandraElementRepository) { + VendorSoftwareProductInfoLoader vendorSoftwareProductInfoLoader = new + VendorSoftwareProductInfoLoader(); + Collection vsps = + vendorSoftwareProductInfoLoader.list(); + vsps.stream().filter(vspInformation -> needMigration(vspInformation.getId(), + vspInformation.getVersion())).forEach + (vspInformation + -> + ItemHandler.save(context, + itemCassandraDao, + versionCassandraDao, + vspInformation.getId(), vspInformation + .getVersion(), + VspInformationConvertor + .getVspInfo + (vspInformation), + VspInformationConvertor.getItemVersionData(vspInformation), + vspInformation.getWritetimeMicroSeconds())); + + vsps.stream().filter(vspInformation -> needMigration(vspInformation.getId(), + vspInformation.getVersion())) + .forEach(vspInformation -> ElementHandler.save(context, cassandraElementRepository, + vspInformation.getId(), vspInformation.getVersion(), + VspInformationConvertor.convertVspToElement + (vspInformation))); + } + + private static void convertVlm(SessionContext context, ItemCassandraDao itemCassandraDao, + VersionCassandraDao versionCassandraDao, + CassandraElementRepository cassandraElementRepository) { + VendorLicenseModelCassandraLoader + vendorLicenseModelCassandraDao = new VendorLicenseModelCassandraLoader(); + Collection vlms = + vendorLicenseModelCassandraDao.list(); + vlms.stream().filter(vlm -> needMigration(vlm.getId(), vlm.getVersion())).forEach(vlmEntity -> + ItemHandler.save + (context, itemCassandraDao, + versionCassandraDao, + vlmEntity.getId(), vlmEntity.getVersion(), + VlmConvertor.getVlmInfo + (vlmEntity), + VlmConvertor.getItemVersionData(vlmEntity), new Date().getTime())); + vlms.stream().filter(vlm -> needMigration(vlm.getId(), vlm.getVersion())) + .forEach(vlmEntity -> ElementHandler.save(context, cassandraElementRepository, + vlmEntity.getId(), vlmEntity.getVersion(), + VlmConvertor.convertVlmToElement + (vlmEntity))); + + } + + private static void convertNic(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + NicCassandraLoader nicCassandraLoader = new NicCassandraLoader(); + Collection nics = nicCassandraLoader.list(); + nics.stream().filter(entity -> needMigration(entity.getVspId(), entity.getVersion + ())).forEach(nicEntity -> ElementHandler.save(context, cassandraElementRepository, + nicEntity.getVspId(), nicEntity.getVersion(), NicConvertor.convertNicToElement + (nicEntity))); + + } + + private static void convertNetwork(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + NetworkCassandraLoader networkCassandraLoader = new NetworkCassandraLoader(); + Collection networks = networkCassandraLoader.list(); + networks.stream().filter(entity -> needMigration(entity.getVspId(), entity.getVersion + ())).forEach(networkEntity -> ElementHandler.save(context, cassandraElementRepository, + networkEntity.getVspId(), networkEntity.getVersion(), NetworkConvertor + .convertNetworkToElement(networkEntity))); + + } + + private static void convertComponent(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + ComponentCassandraLoader componentCassandraLoader = new ComponentCassandraLoader(); + Collection components = componentCassandraLoader.list(); + components.stream().filter(entity -> needMigration(entity.getVspId(), entity.getVersion + ())).forEach(componentEntity -> ElementHandler.save(context, cassandraElementRepository, + componentEntity + .getVspId(), componentEntity.getVersion(), ComponentConvertor + .convertComponentToElement(componentEntity))); + + } + + private static void convertServiceArtifact(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + ServiceArtifactCassandraLoader serviceArtifactCassandraLoader = + new ServiceArtifactCassandraLoader(); + Collection serviceArtifacts = serviceArtifactCassandraLoader.list(); + serviceArtifacts.stream().filter(entity -> needMigration(entity.getVspId(), entity.getVersion + ())).forEach(serviceArtifact -> ElementHandler.save(context, + cassandraElementRepository, + serviceArtifact + .getVspId(), serviceArtifact.getVersion(), + VspServiceArtifactConvertor + .convertServiceArtifactToElement(serviceArtifact))); + + } + + private static void convertServiceTemplate(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + ServiceTemplateCassandraLoader serviceTemplateCassandraLoader = + new ServiceTemplateCassandraLoader(); + Collection serviceTemplates = serviceTemplateCassandraLoader.list(); + serviceTemplates.stream().filter(entity -> needMigration(entity.getVspId(), entity.getVersion + ())).forEach(serviceTemplate -> ElementHandler.save(context, + cassandraElementRepository, + serviceTemplate + .getVspId(), serviceTemplate.getVersion(), + VspServiceTemplateConvertor + .convertServiceTemplateToElement(serviceTemplate))); + + } + + private static void convertLKG(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + LKGCassandraLoader LKGCassandraLoader = new LKGCassandraLoader(); + Collection lkgs = LKGCassandraLoader.list(); + lkgs.stream().filter(entity -> needMigration(entity.getVendorLicenseModelId(), entity.getVersion + ())) + .forEach(licenseKeyGroupEntity -> ElementHandler.save(context, cassandraElementRepository, + licenseKeyGroupEntity + .getVendorLicenseModelId(), licenseKeyGroupEntity.getVersion(), + LKGConvertor.convertLKGToElement + (licenseKeyGroupEntity))); + } + + private static void convertEP(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + EntitlementPoolCassandraLoader entitlementPoolCassandraLoader = + new EntitlementPoolCassandraLoader(); + Collection entitlementPools = entitlementPoolCassandraLoader.list(); + entitlementPools.stream() + .filter(entity -> needMigration(entity.getVendorLicenseModelId(), entity.getVersion + ())) + .forEach(entitlementPoolEntity -> ElementHandler.save(context, cassandraElementRepository, + entitlementPoolEntity + .getVendorLicenseModelId(), entitlementPoolEntity.getVersion(), + EntitlementPoolConvertor.convertEntitlementPoolToElement(entitlementPoolEntity))); + } + + private static void convertFeatureGroup(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + FeatureGroupCassandraLoader featureGroupCassandraLoader = new FeatureGroupCassandraLoader(); + Collection featureGroupEntities = featureGroupCassandraLoader.list(); + featureGroupEntities.stream() + .filter(entity -> needMigration(entity.getVendorLicenseModelId(), entity.getVersion + ())) + .forEach(featureGroupEntity -> ElementHandler.save(context, cassandraElementRepository, + featureGroupEntity + .getVendorLicenseModelId(), featureGroupEntity.getVersion(), + FeatureGroupConvertor.convertFeatureGroupToElement(featureGroupEntity))); + } + + private static void convertLicenseAgreement(SessionContext context, + CassandraElementRepository cassandraElementRepository) { + LicenseAgreementCassandraLoader licenseAgreementCassandraLoader = + new LicenseAgreementCassandraLoader(); + Collection licenseAgreementEntities = + licenseAgreementCassandraLoader.list(); + licenseAgreementEntities.stream() + .filter(entity -> needMigration(entity.getVendorLicenseModelId(), entity.getVersion + ())) + .forEach(licenseAgreementEntity -> ElementHandler.save(context, cassandraElementRepository, + licenseAgreementEntity + .getVendorLicenseModelId(), licenseAgreementEntity.getVersion(), + LicenseAgreementConvertor.convertLicenseAgreementToElement(licenseAgreementEntity))); + } + + + private static boolean needMigration(String itemId, Version versionId) { + + VersionInfoEntity versionInfo = + MigrationMain.versionInfoMap.get(itemId); + if (versionInfo == null) { + printMessage(logger, "ItemId: " + itemId + " is not in version_info table."); + return false; + } + return (versionInfo.getCandidate() != null && versionId.equals(versionInfo.getCandidate() + .getVersion())) + || (versionInfo + .getViewableVersions() != null && versionInfo + .getViewableVersions().contains(versionId)); + } + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ComponentConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ComponentConvertor.java new file mode 100644 index 0000000000..fb597d5a3e --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ComponentConvertor.java @@ -0,0 +1,102 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementPropertyName; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementType; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author katyr + * @since April 23, 2017 + */ + +public class ComponentConvertor { + + private static Set componentsLoaded = new HashSet<>(); + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + + public static CollaborationElement[] convertComponentToElement(ComponentEntity componentEntity) { + + CollaborationElement[] componentElements; + List componentNamespace = getComponentNamespace(); + + int index = 0; + String componentsEntityId = StructureElement.Components.name(); + String uniqueId = componentEntity.getVspId()+"_"+componentEntity.getVersion().toString(); + if (componentsLoaded.contains(uniqueId)) { +// printMessage(logger, "Components structural elements exist for component " + +// componentEntity.getId()); + componentElements = new CollaborationElement[2]; + } else { + componentsLoaded.add(uniqueId); +// printMessage(logger, "Creating Components structural elements for component " + +// componentEntity.getId()); + componentElements = new CollaborationElement[3]; + componentElements[index] = ElementHandler.getElementEntity( + componentEntity.getVspId(), componentEntity.getVersion().toString(), componentsEntityId, + componentNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Components.name()), + null, + null, + null); + index++; + } + + componentNamespace.add(componentsEntityId); + componentElements[index] = ElementHandler.getElementEntity( + componentEntity.getVspId(), componentEntity.getVersion().toString(), + componentEntity.getId(), + componentNamespace, + getComponentInfo(componentEntity), + null, + null, + (componentEntity.getCompositionData() != null) ? componentEntity.getCompositionData().getBytes() + : null); + index++; + + componentNamespace.add(componentEntity.getId()); + componentElements[index] = ElementHandler.getElementEntity( + componentEntity.getVspId(), componentEntity.getVersion().toString(),StructureElement.Questionnaire.name() + "_" + componentEntity.getId(), + componentNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Questionnaire.name()), + null, + null, + (componentEntity.getQuestionnaireData() != null) ? componentEntity.getQuestionnaireData().getBytes() + : null); + + return componentElements; + } + + private static Info getComponentInfo(ComponentEntity componentEntity) { + Info info = new Info(); + info.addProperty(ElementPropertyName.type.name(), ElementType.Component); + info.addProperty(ElementPropertyName.compositionData.name(), + componentEntity.getCompositionData()); + + return info; + } + + private static List getComponentNamespace() { + return ElementHandler.getElementPath(); + } + + public static ElementEntityContext convertComponentToElementContext( + ComponentEntity componentEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(componentEntity.getVspId(), componentEntity.getVersion().toString())); + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/EntitlementPoolConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/EntitlementPoolConvertor.java new file mode 100644 index 0000000000..4c667f6708 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/EntitlementPoolConvertor.java @@ -0,0 +1,96 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.RelationType; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.VlmZusammenUtil; +import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.stream.Collectors; + +/** + * Created by ayalaben on 4/24/2017 + */ +public class EntitlementPoolConvertor { + + private static Set EntitlementPoolsLoaded = new HashSet<>(); + + public static ElementEntityContext convertEntitlementPoolToElementContext( + EntitlementPoolEntity entitlementPoolEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(entitlementPoolEntity.getVendorLicenseModelId(), + entitlementPoolEntity.getVersion().toString())); + } + + public static CollaborationElement[] convertEntitlementPoolToElement( + EntitlementPoolEntity entitlementPoolEntity) { +// printMessage(logger, "source EntitlementPoolEntity -> " + entitlementPoolEntity.toString()); + CollaborationElement[] elements; + List entitlementPoolNamespace = getEntitlementPoolNamespace(entitlementPoolEntity); + + int index = 0; + String entitlememtPoolsEntityId = StructureElement.EntitlementPools.name(); + String uniqueId = entitlementPoolEntity.getVendorLicenseModelId() + "_" + + entitlementPoolEntity.getVersion().toString(); + + if (EntitlementPoolsLoaded.contains(uniqueId)) { + elements = new CollaborationElement[1]; + } else { + EntitlementPoolsLoaded.add(uniqueId); + elements = new CollaborationElement[2]; + elements[index] = ElementHandler.getElementEntity( + entitlementPoolEntity.getVendorLicenseModelId(), + entitlementPoolEntity.getVersion().toString(), + entitlememtPoolsEntityId, entitlementPoolNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.EntitlementPools.name()), + null, null, null); + index++; + } + + entitlementPoolNamespace.add(entitlememtPoolsEntityId); + + elements[index] = ElementHandler.getElementEntity( + entitlementPoolEntity.getVendorLicenseModelId(), + entitlementPoolEntity.getVersion().toString(), + entitlementPoolEntity.getId(), entitlementPoolNamespace, + getEntitelementPoolInfo(entitlementPoolEntity), + entitlementPoolEntity.getReferencingFeatureGroups().stream().map(rel -> + VlmZusammenUtil + .createRelation( RelationType.EntitlmentPoolToReferencingFeatureGroup, rel)) + .collect(Collectors.toList()), null, null); + + return elements; + } + + private static Info getEntitelementPoolInfo(EntitlementPoolEntity entitlementPool) { + + Info info = new Info(); + info.setName(entitlementPool.getName()); + info.setDescription(entitlementPool.getDescription()); + info.addProperty("thresholdValue", entitlementPool.getThresholdValue()); + info.addProperty("threshold_unit", entitlementPool.getThresholdUnit()); + info.addProperty("entitlement_metric", entitlementPool.getEntitlementMetric()); + info.addProperty("increments", entitlementPool.getIncrements()); + info.addProperty("aggregation_func", entitlementPool.getAggregationFunction()); + info.addProperty("operational_scope", entitlementPool.getOperationalScope()); + info.addProperty("EntitlementTime", entitlementPool.getTime()); + info.addProperty("manufacturerReferenceNumber", + entitlementPool.getManufacturerReferenceNumber()); + + return info; + } + + private static List getEntitlementPoolNamespace( + EntitlementPoolEntity entitlementPoolEntity) { + return ElementHandler.getElementPath(""); + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/FeatureGroupConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/FeatureGroupConvertor.java new file mode 100644 index 0000000000..dd3fbe0485 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/FeatureGroupConvertor.java @@ -0,0 +1,100 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.datatypes.item.Relation; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.RelationType; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.VlmZusammenUtil; +import org.openecomp.sdc.vendorlicense.dao.types.FeatureGroupEntity; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.stream.Collectors; + +/** + * Created by ayalaben on 4/25/2017 + */ +public class FeatureGroupConvertor { + + private static Logger logger = LoggerFactory.getLogger(FeatureGroupConvertor.class); + private static Set FeatureGroupsLoaded = new HashSet<>(); + + public static ElementEntityContext convertFeatureGroupToElementContext(FeatureGroupEntity featureGroupEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(featureGroupEntity.getVendorLicenseModelId(), featureGroupEntity.getVersion().toString())); + } + + public static CollaborationElement[] convertFeatureGroupToElement(FeatureGroupEntity featureGroupEntity) { +// printMessage(logger, "source FeatureGroupEntity -> " + featureGroupEntity.toString()); + CollaborationElement[] elements; + List featureGroupNamespace = getFeatureGroupNamespace(featureGroupEntity); + + int index = 0; + String featureGroupsEntityId = StructureElement.FeatureGroups.name(); + String uniqueId = featureGroupEntity.getVendorLicenseModelId() + "_" + featureGroupEntity.getVersion().toString(); + + if (FeatureGroupsLoaded.contains(uniqueId)) { + elements = new CollaborationElement[1]; + } else { + FeatureGroupsLoaded.add(uniqueId); + elements = new CollaborationElement[2]; + elements[index] = ElementHandler.getElementEntity( + featureGroupEntity.getVendorLicenseModelId(), featureGroupEntity.getVersion().toString(), + featureGroupsEntityId, featureGroupNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.FeatureGroups.name()), + null, null, null); + index++; + } + + featureGroupNamespace.add(featureGroupsEntityId); + + elements[index] = ElementHandler.getElementEntity( + featureGroupEntity.getVendorLicenseModelId(), featureGroupEntity.getVersion().toString(), + featureGroupEntity.getId(), featureGroupNamespace, getFeatureGroupInfo(featureGroupEntity), + getAllFeatureGroupRelations(featureGroupEntity), null, null); + + return elements; + } + + private static Collection getAllFeatureGroupRelations(FeatureGroupEntity featureGroup) { + Collection relations = new ArrayList<>(); + + relations.addAll(featureGroup.getEntitlementPoolIds().stream().map(rel -> + VlmZusammenUtil.createRelation( RelationType.FeatureGroupToEntitlmentPool, rel)) + .collect(Collectors.toList())); + + relations.addAll(featureGroup.getLicenseKeyGroupIds().stream().map(rel -> + VlmZusammenUtil.createRelation( RelationType.FeatureGroupToLicenseKeyGroup, rel)) + .collect(Collectors.toList())); + + relations.addAll(featureGroup.getReferencingLicenseAgreements().stream().map(rel -> + VlmZusammenUtil.createRelation( RelationType.FeatureGroupToReferencingLicenseAgreement, + rel)).collect(Collectors.toList())); + + return relations; + } + + private static Info getFeatureGroupInfo(FeatureGroupEntity featureGroup) { + + Info info = new Info(); + info.setName(featureGroup.getName()); + info.setDescription(featureGroup.getDescription()); + info.addProperty("partNumber", featureGroup.getPartNumber()); + return info; + } + + + private static List getFeatureGroupNamespace(FeatureGroupEntity featureGroupEntity) { + return ElementHandler.getElementPath(""); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LKGConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LKGConvertor.java new file mode 100644 index 0000000000..7fd640b12d --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LKGConvertor.java @@ -0,0 +1,79 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.RelationType; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.VlmZusammenUtil; +import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.stream.Collectors; + +/** + * Created by ayalaben on 4/24/2017 + */ +public class LKGConvertor { + + private static Logger logger = LoggerFactory.getLogger(LKGConvertor.class); + private static Set compLKGLoaded = new HashSet<>(); + + public static CollaborationElement[] convertLKGToElement(LicenseKeyGroupEntity licenseKeyGroupEntity) { + CollaborationElement[] elements; + List lkgNamespace = getLKGNamespace(licenseKeyGroupEntity); + + int index = 0; + String lkgsEntityId = StructureElement.LicenseKeyGroups.name(); + String uniqueId = licenseKeyGroupEntity.getVendorLicenseModelId() + "_" + licenseKeyGroupEntity.getVersion().toString(); + + if (compLKGLoaded.contains(uniqueId)) { + elements = new CollaborationElement[1]; + } else { + compLKGLoaded.add(uniqueId); + elements = new CollaborationElement[2]; + elements[index] = ElementHandler.getElementEntity( + licenseKeyGroupEntity.getVendorLicenseModelId(), licenseKeyGroupEntity.getVersion().toString(), lkgsEntityId, lkgNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.LicenseKeyGroups.name()), null, null, null); + index++; + } + + lkgNamespace.add(lkgsEntityId); + + elements[index] = ElementHandler.getElementEntity( + licenseKeyGroupEntity.getVendorLicenseModelId(), licenseKeyGroupEntity.getVersion().toString(), licenseKeyGroupEntity.getId(), lkgNamespace, + getLKGInfo(licenseKeyGroupEntity), licenseKeyGroupEntity.getReferencingFeatureGroups().stream().map(rel -> + VlmZusammenUtil.createRelation( RelationType.LicenseKeyGroupToReferencingFeatureGroup, rel)) + .collect(Collectors.toList()), null, null); + + return elements; + } + + private static Info getLKGInfo(LicenseKeyGroupEntity licenseKeyGroupEntity) { + + Info info = new Info(); + info.setName(licenseKeyGroupEntity.getName()); + info.setDescription(licenseKeyGroupEntity.getDescription()); + info.addProperty("LicenseKeyType", licenseKeyGroupEntity.getType()); + info.addProperty("operational_scope", licenseKeyGroupEntity.getOperationalScope()); + + return info; + } + + private static List getLKGNamespace(LicenseKeyGroupEntity LKGEntity) { + return ElementHandler.getElementPath(""); + } + + public static ElementEntityContext convertLKGToElementContext(LicenseKeyGroupEntity licenseKeyGroupEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(licenseKeyGroupEntity.getVendorLicenseModelId(), licenseKeyGroupEntity.getVersion().toString())); + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LicenseAgreementConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LicenseAgreementConvertor.java new file mode 100644 index 0000000000..25564c3138 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/LicenseAgreementConvertor.java @@ -0,0 +1,84 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.RelationType; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.VlmZusammenUtil; +import org.openecomp.sdc.vendorlicense.dao.types.LicenseAgreementEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; +import java.util.stream.Collectors; + +/** + * Created by ayalaben on 4/25/2017 + */ +public class LicenseAgreementConvertor { + + private static Logger logger = LoggerFactory.getLogger(LicenseAgreementConvertor.class); + private static Set LicenseAgreementsLoaded = new HashSet<>(); + + public static ElementEntityContext convertLicenseAgreementToElementContext(LicenseAgreementEntity licenseAgreementEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(licenseAgreementEntity.getVendorLicenseModelId(), licenseAgreementEntity.getVersion().toString())); + } + + + public static CollaborationElement[] convertLicenseAgreementToElement(LicenseAgreementEntity licenseAgreementEntity) { +// printMessage(logger, "source LicenseAgreementEntity -> " + licenseAgreementEntity.toString()); + CollaborationElement[] elements; + List featureGroupNamespace = getLicenseAgreementNamespace(licenseAgreementEntity); + + int index = 0; + String featureGroupsEntityId = StructureElement.LicenseAgreements.name(); + String uniqueId = licenseAgreementEntity.getVendorLicenseModelId() + "_" + licenseAgreementEntity.getVersion().toString(); + + if (LicenseAgreementsLoaded.contains(uniqueId)) { + elements = new CollaborationElement[1]; + } else { + LicenseAgreementsLoaded.add(uniqueId); + elements = new CollaborationElement[2]; + elements[index] = ElementHandler.getElementEntity( + licenseAgreementEntity.getVendorLicenseModelId(), licenseAgreementEntity.getVersion().toString(), + featureGroupsEntityId, featureGroupNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.LicenseAgreements.name()), + null, null, null); + index++; + } + + featureGroupNamespace.add(featureGroupsEntityId); + + elements[index] = ElementHandler.getElementEntity( + licenseAgreementEntity.getVendorLicenseModelId(), licenseAgreementEntity.getVersion().toString(), + licenseAgreementEntity.getId(), featureGroupNamespace, getLicenseAgreementInfo(licenseAgreementEntity), + licenseAgreementEntity.getFeatureGroupIds().stream().map(rel -> + VlmZusammenUtil.createRelation( RelationType.LicenseAgreementToFeatureGroup, rel)) + .collect(Collectors.toList()), null, null); + + return elements; + } + + private static Info getLicenseAgreementInfo(LicenseAgreementEntity licenseAgreement) { + + Info info = new Info(); + info.setName(licenseAgreement.getName()); + info.setDescription(licenseAgreement.getDescription()); + info.addProperty("licenseTerm", licenseAgreement.getLicenseTerm()); + info.addProperty("requirementsAndConstrains", licenseAgreement.getRequirementsAndConstrains()); + + return info; + } + + private static List getLicenseAgreementNamespace(LicenseAgreementEntity licenseAgreement) { + return ElementHandler.getElementPath(""); + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/MibConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/MibConvertor.java new file mode 100644 index 0000000000..88b9dce95f --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/MibConvertor.java @@ -0,0 +1,66 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementType; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.MibEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class MibConvertor { + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + + private static Set compMibLoaded = new HashSet<>(); + + + public static CollaborationElement[] convertMibToElement(MibEntity mibEntity) { + CollaborationElement[] elements; + List mibNamespace = getMibNamespace(mibEntity); + + int index = 0; + String mibsEntityId = StructureElement.Mibs.name() + "_" + mibEntity.getComponentId(); + if (compMibLoaded.contains(mibsEntityId)) { + elements = new CollaborationElement[1]; + } else { + compMibLoaded.add(mibsEntityId); + elements = new CollaborationElement[2]; + elements[index++] = ElementHandler.getElementEntity( + mibEntity.getVspId(), mibEntity.getVersion().toString(), mibsEntityId, mibNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Mibs.name()), null, null, null); + } + + mibNamespace.add(mibsEntityId); + elements[index] = ElementHandler.getElementEntity( + mibEntity.getVspId(), mibEntity.getVersion().toString(), mibEntity.getId(), mibNamespace, + getMibInfo(mibEntity), null, null, mibEntity.getArtifact().array()); + + return elements; + } + + private static Info getMibInfo(MibEntity mibEntity) { + Info info = new Info(); + info.setName(mibEntity.getType().toString()); + info.getProperties().put("name", mibEntity.getArtifactName()); + return info; + } + + private static List getMibNamespace(MibEntity mibEntity) { + return ElementHandler.getElementPath(StructureElement.Components.name(), mibEntity + .getComponentId()); + } + + public static ElementEntityContext convertMibToElementContext(MibEntity mibEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(mibEntity.getVspId(), mibEntity.getVersion().toString())); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NetworkConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NetworkConvertor.java new file mode 100644 index 0000000000..3d4f1575fc --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NetworkConvertor.java @@ -0,0 +1,91 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementPropertyName; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementType; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NetworkEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author katyr + * @since April 23, 2017 + */ + +public class NetworkConvertor { + + private static Set networksLoaded = new HashSet<>(); + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + + + + public static CollaborationElement[] convertNetworkToElement(NetworkEntity networkEntity) { + + CollaborationElement[] networkElements; + List networkNamespace = getNetworkNamespace(); + + int index = 0; + String networksEntityId = StructureElement.Networks.name(); + String uniqueId = networkEntity.getVspId()+"_"+networkEntity.getVersion().toString(); + if (networksLoaded.contains(uniqueId)) { +// printMessage(logger, "Networks structural elements exist for network " + +// networkEntity.getId()); + networkElements = new CollaborationElement[1]; + } else { +// printMessage(logger, "Creating Networks structural element for network " + +// networkEntity.getId()); + networksLoaded.add(uniqueId); + networkElements = new CollaborationElement[2]; + networkElements[index] = ElementHandler.getElementEntity( + networkEntity.getVspId(), networkEntity.getVersion().toString(), networksEntityId, + networkNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Networks.name()), + null, + null, + null); + index++; + } + + networkNamespace.add(networksEntityId); + + networkElements[index] = ElementHandler.getElementEntity( + networkEntity.getVspId(), networkEntity.getVersion().toString(), networkEntity.getId(), + networkNamespace, + getNetworkInfo(networkEntity), + null, + null, + networkEntity.getCompositionData().getBytes()); + + + return networkElements; + } + + private static Info getNetworkInfo(NetworkEntity networkEntity) { + Info info = new Info(); + info.addProperty(ElementPropertyName.type.name(), ElementType.Network); + info.addProperty(ElementPropertyName.compositionData.name(), networkEntity.getCompositionData()); + + return info; + } + + private static List getNetworkNamespace() { + return ElementHandler.getElementPath(); + } + + public static ElementEntityContext convertNetworkToElementContext(NetworkEntity networkEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(networkEntity.getVspId(), networkEntity.getVersion().toString())); + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NicConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NicConvertor.java new file mode 100644 index 0000000000..b17e68c0e5 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/NicConvertor.java @@ -0,0 +1,95 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementPropertyName; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementType; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NicEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class NicConvertor { + + + private static Set compNicLoaded = new HashSet<>(); + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + + + + public static CollaborationElement[] convertNicToElement(NicEntity nicEntity) { + + CollaborationElement[] nicElements; + List nicNamespace = getNicNamespace(nicEntity); + + int index = 0; + String nicsEntityId = StructureElement.Nics.name() + "_" + nicEntity.getComponentId(); + if (compNicLoaded.contains(nicsEntityId)) { +// printMessage(logger, "Nics structural element exists for nic " + +// nicEntity.getId()); + nicElements = new CollaborationElement[2]; + } else { +// printMessage(logger, "Creating Nics structural element for nic " + +// nicEntity.getId()); + compNicLoaded.add(nicsEntityId); + nicElements = new CollaborationElement[3]; + nicElements[index] = ElementHandler.getElementEntity( + nicEntity.getVspId(), nicEntity.getVersion().toString(), nicsEntityId, + nicNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Nics.name()), + null, + null, + null); + index++; + } + + nicNamespace.add(nicsEntityId); + nicElements[index] = ElementHandler.getElementEntity( + nicEntity.getVspId(), nicEntity.getVersion().toString(), nicEntity.getId(), + nicNamespace, + getNicInfo(nicEntity), + null, + null, + nicEntity.getCompositionData().getBytes()); + index++; + + nicNamespace.add(nicEntity.getId()); + nicElements[index] = ElementHandler.getElementEntity( + nicEntity.getVspId(), nicEntity.getVersion().toString(),StructureElement.Questionnaire.name() + "_" + nicEntity.getId(), + nicNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Questionnaire.name()), + null, + null, + (nicEntity.getQuestionnaireData() != null) ? nicEntity.getQuestionnaireData().getBytes() + : null); + return nicElements; + } + + private static Info getNicInfo(NicEntity nicEntity) { + Info info = new Info(); + info.addProperty(ElementPropertyName.type.name(), ElementType.Nic); + info.addProperty(ElementPropertyName.compositionData.name(), nicEntity.getCompositionData()); + return info; + } + + private static List getNicNamespace(NicEntity nicEntity) { + return ElementHandler.getElementPath(StructureElement.Components.name(), nicEntity + .getComponentId()); + } + + public static ElementEntityContext convertNicToElementContext(NicEntity nicEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(nicEntity.getVspId(), nicEntity.getVersion().toString())); + } + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/OrchestrationTemplateCandidateConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/OrchestrationTemplateCandidateConvertor.java new file mode 100644 index 0000000000..c6778544fd --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/OrchestrationTemplateCandidateConvertor.java @@ -0,0 +1,78 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.datatypes.item.ItemVersionData; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.migration.loaders.VspInformation; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementPropertyName; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementType; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.OrchestrationTemplateCandidateDataEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class OrchestrationTemplateCandidateConvertor { + + + + + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + + public static CollaborationElement[] convertOrchestrationTemplateCandidateToElement( + OrchestrationTemplateCandidateDataEntity entity) { + + + CollaborationElement[] orchestrationTemplateCandidateElements = new CollaborationElement[2]; + List orchestrationTemplateCandidateNamespace = + getOrchestrationTemplateCandidateNamespace(); + + + + orchestrationTemplateCandidateElements[0] = ElementHandler.getElementEntity( + entity.getId(), entity.getVersion().toString(), StructureElement.OrchestrationTemplateCandidate.name(), + orchestrationTemplateCandidateNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.OrchestrationTemplateCandidate.name()), + null, + null, + entity.getFilesDataStructure().getBytes()); + + orchestrationTemplateCandidateNamespace.add(StructureElement.OrchestrationTemplateCandidate.name()); + orchestrationTemplateCandidateElements[1] = ElementHandler.getElementEntity( + entity.getId(), entity.getVersion().toString(), StructureElement.OrchestrationTemplateCandidateContent.name(), + orchestrationTemplateCandidateNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.OrchestrationTemplateCandidateContent.name()), + null, + null, + entity.getContentData().array()); + + + + return orchestrationTemplateCandidateElements; + } + + + private static List getOrchestrationTemplateCandidateNamespace() { + return ElementHandler.getElementPath(); + } + + public static ElementEntityContext convertComponentToElementContext( + ComponentEntity componentEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(componentEntity.getVspId(), componentEntity.getVersion().toString())); + } + + + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ProcessConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ProcessConvertor.java new file mode 100644 index 0000000000..0a145c49f7 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/ProcessConvertor.java @@ -0,0 +1,98 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementType; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ProcessEntity; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class ProcessConvertor { + private static final String NAME = "name"; + private static final String ELEMENT_TYPE = "type"; + private static final String ARTIFACT_NAME = "artifactName"; + private static final String DESCRIPTION = "description"; + private static final String PROCESS_TYPE = "processType"; + private static Set compProcessesLoaded = new HashSet<>(); + + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + + + public static CollaborationElement[] convertProcessToElement(ProcessEntity processEntity) { + CollaborationElement[] elements; + boolean isGeneralComponentId = isGeneralComponentId(processEntity); + List processNamespace = getProcessNamespace(processEntity); + int index = 0; + String uniqueId = getUniqueId(processEntity, isGeneralComponentId); + String processesEntityId = isGeneralComponentId ? StructureElement.Processes.name() : + (StructureElement.Processes.name() + "_" +processEntity.getComponentId()); + if (compProcessesLoaded.contains(uniqueId)) { + elements = new CollaborationElement[1]; + } else { + compProcessesLoaded.add(uniqueId); + elements = new CollaborationElement[2]; + elements[index++] = ElementHandler.getElementEntity( + processEntity.getVspId(), processEntity.getVersion().toString(), processesEntityId, + processNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Processes.name()), null, null, null); + } + + processNamespace.add(processesEntityId); + elements[index] = ElementHandler.getElementEntity( + processEntity.getVspId(), processEntity.getVersion().toString(), processEntity.getId(), + processNamespace, + getProcessInfo(processEntity), null, null, processEntity.getArtifact() == + null ? null : processEntity.getArtifact().array()); + + return elements; + } + + private static String getUniqueId(ProcessEntity processEntity, boolean isGeneralComponentId) { + if (isGeneralComponentId) { + return processEntity.getVspId() + "_" + processEntity.getVersion().toString(); + } else { + return StructureElement.Processes.name() + "_" + processEntity + .getComponentId(); + } + } + + private static Info getProcessInfo(ProcessEntity processEntity) { + Info info = new Info(); + info.setName(processEntity.getName()); + info.addProperty(NAME, processEntity.getName()); + info.addProperty(ELEMENT_TYPE, ElementType.Process); + info.addProperty(ARTIFACT_NAME, processEntity.getArtifactName()); + info.addProperty(DESCRIPTION, processEntity.getDescription()); + info.addProperty(PROCESS_TYPE, + processEntity.getType() != null ? processEntity.getType().name() : null); + return info; + } + + private static List getProcessNamespace(ProcessEntity processEntity) { + if (isGeneralComponentId(processEntity)) { + return ElementHandler.getElementPath(); + } else { + return ElementHandler + .getElementPath(StructureElement.Components.name(), processEntity.getComponentId()); + } + } + + private static boolean isGeneralComponentId(ProcessEntity processEntity) { + return processEntity.getComponentId().equals("General"); + } + + public static ElementEntityContext convertProcessToElementContext(ProcessEntity processEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(processEntity.getVspId(), processEntity.getVersion().toString())); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VlmConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VlmConvertor.java new file mode 100644 index 0000000000..2e5fac830e --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VlmConvertor.java @@ -0,0 +1,94 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.datatypes.item.ItemVersionData; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.loaders.VspInformation; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.vendorlicense.dao.impl.zusammen.VendorLicenseModelDaoZusammenImpl; +import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class VlmConvertor { + + private static Set compNicLoaded = new HashSet<>(); + + public static CollaborationElement[] convertVlmToElement(VendorLicenseModelEntity vendorLicenseModel) { + + CollaborationElement[] vspElements = new CollaborationElement[1]; + List vspNamespace = getVlmNamespace(vendorLicenseModel); + + + String vspEntityId = StructureElement.General.name(); + + vspElements[0] = ElementHandler.getElementEntity( + vendorLicenseModel.getId(), vendorLicenseModel.getVersion().toString(), + vspEntityId, + vspNamespace, + getVlmGeneralInfo(vendorLicenseModel), + null, + null, + null); + return vspElements; + } + + + public static ItemVersionData getItemVersionData( + VendorLicenseModelEntity vendorLicenseModel) { + ItemVersionData itemVersionData = new ItemVersionData(); + Info info = new Info(); + info.setName("main version"); + itemVersionData.setInfo(info); + return itemVersionData; + } + + public static Info getVlmInfo(VendorLicenseModelEntity vendorLicenseModel) { + + Info info = new Info(); + info.setName(vendorLicenseModel.getVendorName()); + info.setDescription(vendorLicenseModel.getDescription()); + info.addProperty("type", "vlm"); + info.addProperty("version", vendorLicenseModel.getVersion()); + info.addProperty("iconRef", vendorLicenseModel.getIconRef()); + return info; + } + + private static List getVlmNamespace(VendorLicenseModelEntity vlmEntity) { + return ElementHandler.getElementPath(""); + } + + private static Info getVlmGeneralInfo(VendorLicenseModelEntity vendorLicenseModel) { + + + Info info = new Info(); + info.setName(StructureElement.General.name()); + info.addProperty(InfoPropertyName.type.name(), InfoPropertyName.vlm.name()); + info.addProperty(InfoPropertyName.iconRef.name(), vendorLicenseModel.getIconRef()); + info.addProperty(InfoPropertyName.name.name(), vendorLicenseModel.getVendorName()); + info.addProperty(InfoPropertyName.description.name(), vendorLicenseModel.getDescription()); + return info; + } + + public static ElementEntityContext convertVlmToElementContext(VendorLicenseModelEntity + vendorLicenseModel) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(vendorLicenseModel.getId(), vendorLicenseModel.getVersion().toString())); + } + + + private enum InfoPropertyName { + name, + description, + iconRef, + type, + vlm + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspInformationConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspInformationConvertor.java new file mode 100644 index 0000000000..b7a1d42386 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspInformationConvertor.java @@ -0,0 +1,141 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.datatypes.item.ItemVersionData; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.loaders.VspInformation; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.StructureElement; + +import java.util.List; + +public class VspInformationConvertor { + + public static ItemVersionData getItemVersionData( + VspInformation vspInformation) { + Info info = new Info(); + info.setName("main version"); + ItemVersionData itemVersionData = new ItemVersionData(); + itemVersionData.setInfo(info); + return itemVersionData; + } + + public static Info getVspInfo(VspInformation vspInformation) { + + Info info = new Info(); + info.setName(vspInformation.getName()); + info.setDescription(vspInformation.getDescription()); + info.addProperty("type", "vsp"); + addVspDetailsToInfo(info, vspInformation); + return info; + } + + private static List getVspNamespace(VendorLicenseModelEntity vlmEntity) { + return ElementHandler.getElementPath(""); + } + + private static void addVspDetailsToInfo(Info info, VspInformation vspInformation) { + info.addProperty("name", vspInformation.getName()); + info.addProperty("description", vspInformation.getDescription()); + info.addProperty("category", vspInformation.getCategory()); + info.addProperty("subCategory", vspInformation.getSubCategory()); + info.addProperty("vendorId", vspInformation.getVendorId()); + info.addProperty("vendorName", vspInformation.getVendorName()); + if (vspInformation.getVlmVersion() != null) { + info.addProperty("vendorVersion", vspInformation.getVlmVersion().toString()); + } + info.addProperty("featureGroups", vspInformation.getFeatureGroups()); + info.addProperty("licenseAgreement", vspInformation.getLicenseAgreement()); + String oldVersion = vspInformation.getIsOldVersion() == null? "1702":"1610"; + info.addProperty("oldVersion", oldVersion); + } + + public static CollaborationElement[] convertVspToElement(VspInformation vspInformation) { + + CollaborationElement[] vspElements = new CollaborationElement[4]; + List vspNamespace = getVspNamespace(vspInformation); + + + String vspEntityId = StructureElement.General.name(); + + vspElements[0] = ElementHandler.getElementEntity( + vspInformation.getId(), vspInformation.getVersion().toString(), + vspEntityId, + vspNamespace, + getVspGeneralInfo(vspInformation), + null, + null, + null); + + String vspOrchestrationTemplateEntityId = StructureElement.OrchestrationTemplate.name(); + vspElements[1] = ElementHandler.getElementEntity( + vspInformation.getId(), vspInformation.getVersion().toString(), + vspOrchestrationTemplateEntityId, + vspNamespace, + ElementHandler.getStructuralElementInfo(vspOrchestrationTemplateEntityId), + null, + null, + null); + + + vspNamespace.add(vspOrchestrationTemplateEntityId); + + String vspOrchestrationTemplateValidationDataEntityId = StructureElement.OrchestrationTemplateValidationData.name(); + vspElements[2] = ElementHandler.getElementEntity( + vspInformation.getId(), vspInformation.getVersion().toString(), + vspOrchestrationTemplateValidationDataEntityId, + vspNamespace, + ElementHandler.getStructuralElementInfo(vspOrchestrationTemplateValidationDataEntityId), + null, + null, + vspInformation.getValidationData()!= null?vspInformation.getValidationData().getBytes() + :null); + + String vspOrchestrationTemplateContentEntityId = StructureElement.OrchestrationTemplateContent.name(); + vspElements[3] = ElementHandler.getElementEntity( + vspInformation.getId(), vspInformation.getVersion().toString(), + vspOrchestrationTemplateContentEntityId, + vspNamespace, + ElementHandler.getStructuralElementInfo(vspOrchestrationTemplateContentEntityId), + null, + null, + vspInformation.getContentData()!= null?vspInformation.getContentData().array() + :null); + + return vspElements; + } + + private static Info getVspGeneralInfo(VspInformation vspInformation) { + + + Info info = new Info(); + info.setName(StructureElement.General.name()); + info.addProperty("name", vspInformation.getName()); + info.addProperty("description", vspInformation.getDescription()); + info.addProperty("category", vspInformation.getCategory()); + info.addProperty("subCategory", vspInformation.getSubCategory()); + info.addProperty("vendorId", vspInformation.getVendorId()); + info.addProperty("vendorName", vspInformation.getVendorName()); + if (vspInformation.getVlmVersion() != null) { + info.addProperty("vendorVersion", vspInformation.getVlmVersion().toString()); + } + info.addProperty("featureGroups", vspInformation.getFeatureGroups()); + info.addProperty("licenseAgreement", vspInformation.getLicenseAgreement()); + String oldVersion = vspInformation.getIsOldVersion() == null? "1702":"1610"; + info.addProperty("oldVersion", oldVersion); + return info; + } + + private static List getVspNamespace(VspInformation vspEntity) { + return ElementHandler.getElementPath(""); + } + + public static ElementEntityContext convertVspToElementContext(VspInformation vspEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(vspEntity.getId(), vspEntity.getVersion().toString())); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceArtifactConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceArtifactConvertor.java new file mode 100644 index 0000000000..76e35b56c4 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceArtifactConvertor.java @@ -0,0 +1,86 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.core.model.types.ServiceArtifact; +import org.openecomp.core.utilities.file.FileUtils; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementPropertyName; +import org.openecomp.sdc.vendorsoftwareproduct.dao.impl.zusammen.ElementType; +import org.openecomp.sdc.model.impl.zusammen.StructureElement; + + +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author katyr + * @since April 23, 2017 + */ + +public class VspServiceArtifactConvertor +{ + private static Set serviceArtifactsLoaded = new HashSet<>(); + + + + public static CollaborationElement[] convertServiceArtifactToElement(ServiceArtifact serviceArtifact) { + + CollaborationElement[] serviceArtifactElements; + List serviceArtifactNamespace = getServiceArtifactNamespace(); + + int index = 0; + String serviceArtifactsEntityId = StructureElement.Artifacts.name(); + String uniqueId = serviceArtifact.getVspId()+"_"+serviceArtifact.getVersion().toString(); + if (serviceArtifactsLoaded.contains(uniqueId)) { + serviceArtifactElements = new CollaborationElement[1]; + } else { + serviceArtifactsLoaded.add(uniqueId); + serviceArtifactElements = new CollaborationElement[2]; + serviceArtifactElements[index] = ElementHandler.getElementEntity( + serviceArtifact.getVspId(), serviceArtifact.getVersion().toString(), serviceArtifactsEntityId, + serviceArtifactNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Artifacts.name()), + null, + null, + null); + index++; + } + + serviceArtifactNamespace.add(serviceArtifactsEntityId); + String elementId = serviceArtifact.getVspId()+"_"+serviceArtifact.getVersion().toString() + +"_"+serviceArtifact.getName(); + serviceArtifactElements[index] = ElementHandler.getElementEntity( + serviceArtifact.getVspId(), serviceArtifact.getVersion().toString(), elementId, + serviceArtifactNamespace, + getServiceArtifactInfo(serviceArtifact), + null, + null, + FileUtils.toByteArray(serviceArtifact.getContent())); + + return serviceArtifactElements; + } + + private static Info getServiceArtifactInfo(ServiceArtifact serviceArtifactEntity) { + Info info = new Info(); + info.setName(serviceArtifactEntity.getName()); + info.addProperty("type", org.openecomp.sdc.model.impl.zusammen.ElementType.Artifact.name()); + + return info; + } + + private static List getServiceArtifactNamespace() { + return ElementHandler.getElementPath(StructureElement.ServiceModel.name()); + } + + public static ElementEntityContext convertServiceArtifactToElementContext(ServiceArtifact + serviceArtifactEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(serviceArtifactEntity.getVspId(), serviceArtifactEntity.getVersion().toString())); + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceTemplateConvertor.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceTemplateConvertor.java new file mode 100644 index 0000000000..3854b32366 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/convertors/VspServiceTemplateConvertor.java @@ -0,0 +1,102 @@ +package org.openecomp.core.migration.convertors; + +import com.amdocs.zusammen.datatypes.item.ElementContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.store.ElementHandler; +import org.openecomp.core.model.types.ServiceTemplate; +import org.openecomp.core.utilities.file.FileUtils; +import org.openecomp.sdc.model.impl.zusammen.ElementType; +import org.openecomp.sdc.model.impl.zusammen.StructureElement; +import org.openecomp.sdc.tosca.services.yamlutil.ToscaExtensionYamlUtil; + +import java.io.ByteArrayInputStream; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author katyr + * @since April 23, 2017 + */ + +public class VspServiceTemplateConvertor +{ + private static Set serviceTemplatesLoaded = new HashSet<>(); + + + + public static CollaborationElement[] convertServiceTemplateToElement(ServiceTemplate serviceTemplate) { + + CollaborationElement[] serviceTemplateElements; + List serviceTemplateNamespace = getServiceTemplateNamespace(); + + int index = 0; + String serviceTemplatesEntityId = StructureElement.Templates.name(); + String uniqueId = serviceTemplate.getVspId()+"_"+serviceTemplate.getVersion().toString(); + if (serviceTemplatesLoaded.contains(uniqueId)) { + serviceTemplateElements = new CollaborationElement[1]; + } else { + serviceTemplatesLoaded.add(uniqueId); + String vspServiceModelEntityId = StructureElement.ServiceModel.name(); + + serviceTemplateElements = new CollaborationElement[3]; + serviceTemplateElements[index] = ElementHandler.getElementEntity( + serviceTemplate.getVspId(), + serviceTemplate.getVersion().toString(), + vspServiceModelEntityId, + serviceTemplateNamespace, + ElementHandler.getServiceModelElementInfo(vspServiceModelEntityId,serviceTemplate), + null, + null, + null); + index++; + serviceTemplateNamespace.add(vspServiceModelEntityId); + serviceTemplateElements[index] = ElementHandler.getElementEntity( + serviceTemplate.getVspId(), serviceTemplate.getVersion().toString(), serviceTemplatesEntityId, + serviceTemplateNamespace, + ElementHandler.getStructuralElementInfo(StructureElement.Templates.name()), + null, + null, + null); + index++; + } + + serviceTemplateNamespace.add(serviceTemplatesEntityId); + String elementId = serviceTemplate.getVspId()+"_"+serviceTemplate.getVersion().toString() + +"_"+serviceTemplate.getName(); + serviceTemplateElements[index] = ElementHandler.getElementEntity( + serviceTemplate.getVspId(), serviceTemplate.getVersion().toString(), elementId, + serviceTemplateNamespace, + getServiceTemplateInfo(serviceTemplate), + null, + null, + FileUtils.toByteArray(serviceTemplate.getContent())); + + return serviceTemplateElements; + } + + private static Info getServiceTemplateInfo(ServiceTemplate serviceTemplateEntity) { + Info info = new Info(); + info.setName(serviceTemplateEntity.getName()); + info.addProperty("type", ElementType.Servicetemplate.name()); + info.addProperty("base", serviceTemplateEntity.getBaseName()); + + + + return info; + } + + private static List getServiceTemplateNamespace() { + return ElementHandler.getElementPath(); + } + + public static ElementEntityContext convertServiceTemplateToElementContext(ServiceTemplate + serviceTemplateEntity) { + + return new ElementEntityContext("GLOBAL_USER", new + ElementContext(serviceTemplateEntity.getVspId(), serviceTemplateEntity.getVersion().toString())); + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ComponentCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ComponentCassandraLoader.java new file mode 100644 index 0000000000..3e00f9d2bc --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ComponentCassandraLoader.java @@ -0,0 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity; + +import java.util.Collection; + +public class ComponentCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final ComponentAccessor accessor = + noSqlDb.getMappingManager().createAccessor(ComponentAccessor.class); + + + public Collection list() { + return accessor.list().all(); + } + + @Accessor + interface ComponentAccessor { + + @Query( + "select * from vsp_component ") + Result list(); + + + } + + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/EntitlementPoolCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/EntitlementPoolCassandraLoader.java new file mode 100644 index 0000000000..c307bfcdf6 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/EntitlementPoolCassandraLoader.java @@ -0,0 +1,31 @@ +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorlicense.dao.types.EntitlementPoolEntity; + +import java.util.Collection; + +/** + * Created by ayalaben on 4/24/2017 + */ +public class EntitlementPoolCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + + private static final EntitlementPoolCassandraLoader.EntitlementPoolAccessor accessor = + noSqlDb.getMappingManager().createAccessor(EntitlementPoolCassandraLoader.EntitlementPoolAccessor.class); + + public Collection list() { + return accessor.list().all(); + } + + @Accessor + interface EntitlementPoolAccessor { + @Query("select * from entitlement_pool ") + Result list(); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/FeatureGroupCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/FeatureGroupCassandraLoader.java new file mode 100644 index 0000000000..0c7627f177 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/FeatureGroupCassandraLoader.java @@ -0,0 +1,30 @@ +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorlicense.dao.types.FeatureGroupEntity; + +import java.util.Collection; + +/** + * Created by ayalaben on 4/25/2017. + */ +public class FeatureGroupCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final FeatureGroupCassandraLoader.FGAccessor accessor = + noSqlDb.getMappingManager().createAccessor(FeatureGroupCassandraLoader.FGAccessor.class); + + public Collection list() { + return accessor.getAll().all(); + } + + @Accessor + interface FGAccessor { + @Query("SELECT * FROM feature_group") + Result getAll(); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LKGCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LKGCassandraLoader.java new file mode 100644 index 0000000000..891a69eb14 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LKGCassandraLoader.java @@ -0,0 +1,31 @@ +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorlicense.dao.types.LicenseKeyGroupEntity; + +import java.util.Collection; + +/** + * Created by ayalaben on 4/24/2017 + */ +public class LKGCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final LKGCassandraLoader.LKGAccessor accessor = + noSqlDb.getMappingManager().createAccessor(LKGCassandraLoader.LKGAccessor.class); + + public Collection list() { + return accessor.getAll().all(); + } + + @Accessor + interface LKGAccessor { + @Query("SELECT * FROM license_key_group") + Result getAll(); + + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LicenseAgreementCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LicenseAgreementCassandraLoader.java new file mode 100644 index 0000000000..ca44209bdb --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/LicenseAgreementCassandraLoader.java @@ -0,0 +1,31 @@ +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorlicense.dao.types.LicenseAgreementEntity; + +import java.util.Collection; + +/** + * Created by ayalaben on 4/25/2017. + */ +public class LicenseAgreementCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final LicenseAgreementCassandraLoader.LicenseAgreementAccessor accessor = + noSqlDb.getMappingManager().createAccessor(LicenseAgreementCassandraLoader.LicenseAgreementAccessor.class); + + public Collection list() { + return accessor.getAll().all(); + } + + @Accessor + interface LicenseAgreementAccessor { + @Query("SELECT * FROM license_agreement") + Result getAll(); + + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/MibCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/MibCassandraLoader.java new file mode 100644 index 0000000000..fdb534df32 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/MibCassandraLoader.java @@ -0,0 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.MibEntity; + +import java.util.Collection; + +public class MibCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final MibAccessor accessor = + noSqlDb.getMappingManager().createAccessor(MibAccessor.class); + + + public Collection list() { + return accessor.list().all(); + } + + @Accessor + interface MibAccessor { + + @Query( + "select * from vsp_component_artifact") + Result list(); + + + } + + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NetworkCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NetworkCassandraLoader.java new file mode 100644 index 0000000000..7ce93bccf2 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NetworkCassandraLoader.java @@ -0,0 +1,35 @@ +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NetworkEntity; + +import java.util.Collection; + +/** + * @author katyr + * @since April 23, 2017 + */ + +public class NetworkCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final NetworkCassandraLoader.NetworkAccessor accessor = + noSqlDb.getMappingManager().createAccessor(NetworkCassandraLoader.NetworkAccessor.class); + + + public Collection list() { + return accessor.list().all(); + } + + @Accessor + interface NetworkAccessor { + + @Query( + "select * from vsp_network ") + Result list(); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NicCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NicCassandraLoader.java new file mode 100644 index 0000000000..fea9c089b5 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/NicCassandraLoader.java @@ -0,0 +1,63 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Mapper; +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.UDTMapper; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.NicEntity; +import org.openecomp.sdc.versioning.dao.types.Version; + +import java.util.Collection; + +public class NicCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final Mapper mapper = + noSqlDb.getMappingManager().mapper(NicEntity.class); + private static final NicAccessor accessor = + noSqlDb.getMappingManager().createAccessor(NicAccessor.class); + private static final UDTMapper versionMapper = + noSqlDb.getMappingManager().udtMapper(Version.class); + + + public Collection list() { + return accessor.list().all(); + } + + @Accessor + interface NicAccessor { + + @Query( + "select vsp_id, version, component_id, nic_id, composition_data,questionnaire_data " + + " from vsp_component_nic ") + Result list(); + + + } + + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/OrchestrationTemplateCandidateCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/OrchestrationTemplateCandidateCassandraLoader.java new file mode 100644 index 0000000000..b8c173843d --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/OrchestrationTemplateCandidateCassandraLoader.java @@ -0,0 +1,56 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ComponentEntity; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.OrchestrationTemplateCandidateDataEntity; + +import java.util.Collection; + +public class OrchestrationTemplateCandidateCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final OrchestrationTemplateCandidateAccessor accessor = + noSqlDb.getMappingManager().createAccessor(OrchestrationTemplateCandidateAccessor.class); + + + public Collection list() { + return accessor.list().all(); + } + + @Accessor + interface OrchestrationTemplateCandidateAccessor { + + @Query( + "select * from vsp_orchestration_template_candidate ") + Result list(); + + + } + + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ProcessCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ProcessCassandraLoader.java new file mode 100644 index 0000000000..6672af5fb4 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ProcessCassandraLoader.java @@ -0,0 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.ProcessEntity; + +import java.util.Collection; + +public class ProcessCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final ProcessAccessor accessor = + noSqlDb.getMappingManager().createAccessor(ProcessAccessor.class); + + + public Collection list() { + return accessor.list().all(); + } + + @Accessor + interface ProcessAccessor { + + @Query( + "select * from vsp_process") + Result list(); + + + } + + + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceArtifactCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceArtifactCassandraLoader.java new file mode 100644 index 0000000000..523166205a --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceArtifactCassandraLoader.java @@ -0,0 +1,61 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.model.types.ServiceArtifact; +import org.openecomp.core.model.types.ServiceArtifactEntity; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; + +import java.util.Collection; +import java.util.List; +import java.util.stream.Collectors; + +public class ServiceArtifactCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final VspServiceArtifactAccessor accessor = + noSqlDb.getMappingManager().createAccessor( + VspServiceArtifactAccessor.class); + + + public Collection list() { + + + List entityList = accessor.listAll().all(); + + return entityList.stream().map(entity -> entity.getServiceArtifact()) + .collect(Collectors.toList()); + } + + @Accessor + interface VspServiceArtifactAccessor { + + @Query("SELECT * FROM vsp_service_artifact") + Result listAll(); + + + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceTemplateCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceTemplateCassandraLoader.java new file mode 100644 index 0000000000..f7e5853ffb --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/ServiceTemplateCassandraLoader.java @@ -0,0 +1,61 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.model.types.ServiceTemplate; +import org.openecomp.core.model.types.ServiceTemplateEntity; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; + +import java.util.Collection; +import java.util.List; +import java.util.stream.Collectors; + +public class ServiceTemplateCassandraLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final VspServiceTemplateAccessor accessor = + noSqlDb.getMappingManager().createAccessor( + VspServiceTemplateAccessor.class); + + + public Collection list() { + + + List entityList = accessor.listAll().all(); + + return entityList.stream().map(entity -> entity.getServiceTemplate()) + .collect(Collectors.toList()); + } + + @Accessor + interface VspServiceTemplateAccessor { + + @Query("SELECT * FROM vsp_service_template") + Result listAll(); + + + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorLicenseModelCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorLicenseModelCassandraLoader.java new file mode 100644 index 0000000000..c02cc1e4ef --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorLicenseModelCassandraLoader.java @@ -0,0 +1,50 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity; + +import java.util.Collection; + +public class VendorLicenseModelCassandraLoader { + + private static NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static VendorLicenseModelAccessor accessor = + noSqlDb.getMappingManager().createAccessor(VendorLicenseModelAccessor.class); + + + public Collection list() { + return accessor.getAll().all(); + } + + @Accessor + interface VendorLicenseModelAccessor { + + @Query("SELECT * FROM vendor_license_model") + Result getAll(); + + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorSoftwareProductInfoLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorSoftwareProductInfoLoader.java new file mode 100644 index 0000000000..bac4b6e440 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VendorSoftwareProductInfoLoader.java @@ -0,0 +1,68 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.core.ResultSet; +import com.datastax.driver.core.UDTValue; +import com.datastax.driver.mapping.Mapper; +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.UDTMapper; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.dao.impl.CassandraBaseDao; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.vendorsoftwareproduct.dao.VendorSoftwareProductInfoDao; +import org.openecomp.sdc.vendorsoftwareproduct.dao.type.VspDetails; +import org.openecomp.sdc.versioning.VersioningManagerFactory; +import org.openecomp.sdc.versioning.dao.types.Version; +import org.openecomp.sdc.versioning.types.VersionableEntityMetadata; + +import java.util.Collection; + +public class VendorSoftwareProductInfoLoader { + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final Mapper mapper = + noSqlDb.getMappingManager().mapper(VspInformation.class); + private static final VendorSoftwareProductInfoAccessor accessor = + noSqlDb.getMappingManager().createAccessor(VendorSoftwareProductInfoAccessor.class); + private static final UDTMapper versionMapper = + noSqlDb.getMappingManager().udtMapper(Version.class); + + + public Collection list() { + return accessor.listAll().all(); + } + + + @Accessor + interface VendorSoftwareProductInfoAccessor { + + @Query( + "SELECT * " + + "FROM " + + "vsp_information") + Result listAll(); + + + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VersionInfoCassandraLoader.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VersionInfoCassandraLoader.java new file mode 100644 index 0000000000..2a6efd22f3 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VersionInfoCassandraLoader.java @@ -0,0 +1,55 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.Mapper; +import com.datastax.driver.mapping.Result; +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.dao.impl.CassandraBaseDao; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.versioning.dao.VersionInfoDao; +import org.openecomp.sdc.versioning.dao.types.VersionInfoEntity; + +import java.util.Collection; + +public class VersionInfoCassandraLoader { + + private static NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static Mapper mapper = + noSqlDb.getMappingManager().mapper(VersionInfoEntity.class); + private static VersionInfoAccessor accessor = + noSqlDb.getMappingManager().createAccessor(VersionInfoAccessor.class); + + + + + public Collection list() { + return accessor.getAll().all(); + } + + @Accessor + interface VersionInfoAccessor { + @Query("select * from version_info ") + Result getAll(); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VspInformation.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VspInformation.java new file mode 100644 index 0000000000..2db1b09db3 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/loaders/VspInformation.java @@ -0,0 +1,276 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + +package org.openecomp.core.migration.loaders; + +import com.datastax.driver.mapping.annotations.Column; +import com.datastax.driver.mapping.annotations.Computed; +import com.datastax.driver.mapping.annotations.Frozen; +import com.datastax.driver.mapping.annotations.PartitionKey; +import com.datastax.driver.mapping.annotations.Table; +import org.openecomp.core.utilities.json.JsonUtil; +import org.openecomp.sdc.heat.datatypes.structure.ValidationStructureList; +import org.openecomp.sdc.versioning.dao.types.Version; + +import java.nio.ByteBuffer; +import java.util.List; + +@Table(keyspace = "dox", name = "vsp_information") +public class VspInformation { + public static final String ENTITY_TYPE = "Vendor Software Product"; + + @PartitionKey + @Column(name = "vsp_id") + private String id; + + @PartitionKey(value = 1) + @Frozen + private Version version; + + private String name; + private String description; + + private String category; + + @Column(name = "sub_category") + private String subCategory; + + private String icon; + + @Column(name = "vendor_name") + private String vendorName; + + @Column(name = "vendor_id") + private String vendorId; + + @Column(name = "vlm_version") + @Frozen + private Version vlmVersion; + + @Column(name = "license_agreement") + private String licenseAgreement; + + @Column(name = "feature_groups") + private List featureGroups; + + @Column(name = "package_name") + private String packageName; + + @Column(name = "package_version") + private String packageVersion; + + @Column(name = "validation_data") + private String validationData; + + @Column(name = "is_old_version") + private String isOldVersion; + + @Column(name = "questionnaire_data") + private String questionnaireData; + + @Column(name = "content_data") + private ByteBuffer contentData; + + + @Computed("writetime(name)") + private Long writetimeMicroSeconds; + + + public VspInformation() { + } + + public VspInformation(String id, Version version) { + this.id = id; + this.version = version; + } + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public String getSubCategory() { + return subCategory; + } + + public void setSubCategory(String subCategory) { + this.subCategory = subCategory; + } + + public String getIcon() { + return icon; + } + + public void setIcon(String icon) { + this.icon = icon; + } + + public String getVendorName() { + return vendorName; + } + + public void setVendorName(String vendorName) { + this.vendorName = vendorName; + } + + public String getVendorId() { + return vendorId; + } + + public void setVendorId(String vendorId) { + this.vendorId = vendorId; + } + + public Version getVlmVersion() { + return vlmVersion; + } + + public void setVlmVersion(Version vlmVersion) { + this.vlmVersion = vlmVersion; + } + + public String getLicenseAgreement() { + return licenseAgreement; + } + + public void setLicenseAgreement(String licenseAgreement) { + this.licenseAgreement = licenseAgreement; + } + + public List getFeatureGroups() { + return featureGroups; + } + + public void setFeatureGroups(List featureGroups) { + this.featureGroups = featureGroups; + } + + public String getPackageName() { + return packageName; + } + + public void setPackageName(String packageName) { + this.packageName = packageName; + } + + public String getPackageVersion() { + return packageVersion; + } + + public void setPackageVersion(String packageVersion) { + this.packageVersion = packageVersion; + } + + public String getValidationData() { + return validationData; + } + + public void setValidationData(String validationData) { + this.validationData = validationData; + } + + public ValidationStructureList getValidationDataStructure() { + return validationData == null ? null + : JsonUtil.json2Object(validationData, ValidationStructureList.class); + } + + public void setValidationDataStructure(ValidationStructureList validationData) { + this.validationData = validationData == null ? null + : JsonUtil.object2Json(validationData); + } + + public Long getWritetimeMicroSeconds() { + return this.writetimeMicroSeconds; + } + + public void setWritetimeMicroSeconds(Long writetimeMicroSeconds) { + this.writetimeMicroSeconds = writetimeMicroSeconds; + } + + public String getIsOldVersion() { + return this.isOldVersion; + } + + public void setIsOldVersion(String oldVersion) { + this.isOldVersion = oldVersion; + } + + public void setVersion(Version version) { + this.version = version; + } + + public Version getVersion() { + return version; + } + + public String getQuestionnaireData() { + return questionnaireData; + } + + public void setQuestionnaireData(String questionnaireData) { + this.questionnaireData = questionnaireData; + } + + public ByteBuffer getContentData() { + return contentData; + } + + public void setContentData(ByteBuffer contentData) { + this.contentData = contentData; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("Vsp id = ").append(this.id); + sb.append("Version = ").append(this.version); + + return sb.toString(); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ElementHandler.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ElementHandler.java new file mode 100644 index 0000000000..34e7d79001 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ElementHandler.java @@ -0,0 +1,136 @@ +package org.openecomp.core.migration.store; + +import com.amdocs.zusammen.datatypes.Id; +import com.amdocs.zusammen.datatypes.Namespace; +import com.amdocs.zusammen.datatypes.SessionContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.datatypes.item.Relation; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntityContext; +import com.amdocs.zusammen.sdk.collaboration.types.CollaborationElement; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.model.types.ServiceTemplate; +import org.openecomp.core.zusammen.plugin.ZusammenPluginUtil; +import org.openecomp.core.zusammen.plugin.dao.impl.CassandraElementRepository; +import org.openecomp.core.zusammen.plugin.dao.types.ElementEntity; +import org.openecomp.sdc.versioning.dao.types.Version; +import org.openecomp.sdc.versioning.dao.types.VersionInfoEntity; + +import java.io.ByteArrayInputStream; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Collections; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class ElementHandler { + + private static final String GLOBAL_USER = "GLOBAL_USER"; + + public static void save(SessionContext context, + CassandraElementRepository cassandraElementRepository, + String itemId, Version versionId, + CollaborationElement[] elements) { + + ElementEntityContext elementContext; + for (CollaborationElement element : elements) { + + elementContext = new ElementEntityContext(GLOBAL_USER, new Id(itemId), getVersionId(itemId, + versionId)); + ElementEntity elementEntity = ZusammenPluginUtil.getElementEntity(element); + + cassandraElementRepository.createNamespace(context, elementContext, elementEntity); + + cassandraElementRepository.create(context, elementContext, elementEntity); + + if (isActiveVersion(itemId, versionId)) { + elementContext = + new ElementEntityContext(GLOBAL_USER, new Id(itemId), new Id(versionId.toString())); + cassandraElementRepository.create(context, elementContext, elementEntity); + + } + } + } + + public static CollaborationElement getElementEntity(String itemId, + String versionId, + String elementId, + List elementPath, + Info info, + Collection relations, + List subElements, + byte[] data) { + Namespace namespace = new Namespace(); + for (String pathElementId : elementPath) { + namespace = new Namespace(namespace, new Id(pathElementId)); + } + if (namespace.getValue() == null || namespace.getValue().equals("")) { + namespace = Namespace.ROOT_NAMESPACE; + } + CollaborationElement elementEntity = new CollaborationElement(new Id(itemId), new Id(versionId), + namespace, new Id(elementId)); + + Id parentId = namespace.getParentElementId() != null ? namespace.getParentElementId() : Id.ZERO; + elementEntity.setParentId(parentId); + elementEntity.setInfo(info); + elementEntity.setRelations(relations); + if (subElements != null) { + Set subElementSet = new HashSet<>(); + + subElements.forEach(subElement -> subElementSet.add(new Id(subElement))); + + } + if (data != null) { + elementEntity.setData(new ByteArrayInputStream(data)); + } + + return elementEntity; + } + + public static List getElementPath(String... paths) { + List pathList = new ArrayList<>(); + if (paths != null) { + Collections.addAll(pathList, paths); + } + return pathList; + } + + public static Info getStructuralElementInfo(String elementName) { + Info info = new Info(); + info.setName(elementName); + return info; + } + + + private static Id getVersionId(String itemId, Version versionId) { + VersionInfoEntity versionInfo = + MigrationMain.versionInfoMap.get(itemId); + if (versionInfo == null) { + return new Id(versionId.toString()); + } + Version lastVersion = versionInfo.getCandidate() != null ? versionInfo.getCandidate() + .getVersion() + : versionInfo.getActiveVersion(); + + if (lastVersion.equals(versionId)) { + return new Id(itemId); + } else { + return new Id(versionId.toString()); + } + } + + private static boolean isActiveVersion(String itemId, Version versionId) { + VersionInfoEntity versionInfo = + MigrationMain.versionInfoMap.get(itemId); + return versionInfo != null && versionInfo.getActiveVersion().equals(versionId); + } + + + public static Info getServiceModelElementInfo(String vspServiceModelEntityId, + ServiceTemplate serviceTemplate) { + Info info = ElementHandler.getStructuralElementInfo(vspServiceModelEntityId); + info.addProperty("base", serviceTemplate.getBaseName()); + return info; + + } +} \ No newline at end of file diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ItemHandler.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ItemHandler.java new file mode 100644 index 0000000000..97f5aaf265 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/store/ItemHandler.java @@ -0,0 +1,122 @@ +package org.openecomp.core.migration.store; + +import com.amdocs.zusammen.datatypes.Id; +import com.amdocs.zusammen.datatypes.Namespace; +import com.amdocs.zusammen.datatypes.SessionContext; +import com.amdocs.zusammen.datatypes.item.Info; +import com.amdocs.zusammen.datatypes.item.ItemVersionData; +import com.amdocs.zusammen.datatypes.item.Relation; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.impl.ItemCassandraDao; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.impl.VersionCassandraDao; +import com.amdocs.zusammen.plugin.statestore.cassandra.dao.types.ElementEntity; + +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.sdc.vendorlicense.dao.types.VendorLicenseModelEntity; +import org.openecomp.sdc.versioning.dao.types.Version; +import org.openecomp.sdc.versioning.dao.types.VersionInfoEntity; + +import java.util.ArrayList; +import java.util.Collection; +import java.util.Date; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +public class ItemHandler { + + public static ElementEntity getElementEntity(String id, List + elementPath, Info info, Collection relations, List subElements, + byte[] data) { + ElementEntity elementEntity = new ElementEntity(new Id(id)); + + Namespace namespace = new Namespace(); + for (String elementId : elementPath) { + namespace = new Namespace(namespace, new Id(elementId)); + } + elementEntity.setNamespace(namespace); + elementEntity.setParentId(namespace.getParentElementId()); + elementEntity.setInfo(info); + elementEntity.setRelations(relations); + if(subElements!=null) { + Set subElementSet = new HashSet<>(); + + subElements.forEach(subElement -> subElementSet.add(new Id(subElement))); + + elementEntity.setSubElementIds(subElementSet); + } + + //elementEntity.setData(new ByteArrayInputStream(data)); + return elementEntity; + } + + public static List getElementPath(String... paths) { + List pathList = new ArrayList<>(); + for (String path : paths) { + pathList.add(path); + } + return pathList; + } + + public static Info getStractualElementInfo(String elementName) { + Info info = new Info(); + info.setName(elementName); + return info; + } + + public static void save(SessionContext context, ItemCassandraDao itemCassandraDao, + VersionCassandraDao versionCassandraDao, + String itemId, Version versionId, Info info, + ItemVersionData itemVersionData, Long writetimeMicroSeconds) { + + Date date = writetimeMicroSeconds==null?new Date():new Date(writetimeMicroSeconds); + itemCassandraDao.create(context,new Id(itemId),info,date); + + versionCassandraDao.create(context, context.getUser().getUserName(),new Id(itemId), + null,getVersionId(itemId,versionId),itemVersionData,date); + + if(isActiveVersion(itemId,versionId)){ + versionCassandraDao.create(context, context.getUser().getUserName(),new Id(itemId), + null,new Id(versionId.toString()),itemVersionData,date); + } + } + + + + private static Info getInfo(VendorLicenseModelEntity vlmEntity) { + Info info = new Info(); + + info.setName(vlmEntity.getVendorName()); + info.setDescription(vlmEntity.getDescription()); + info.addProperty("iconRef",vlmEntity.getIconRef()); + info.addProperty("type",vlmEntity.getIconRef()); + return info; + } + + private static Id getVersionId(String itemId, Version versionId) { + VersionInfoEntity versionInfo = + MigrationMain.versionInfoMap.get(itemId); + if (versionInfo == null) { + return new Id(versionId.toString()); + } + Version lastVersion = versionInfo.getCandidate() != null ? versionInfo.getCandidate() + .getVersion() + : versionInfo.getActiveVersion(); + + if (lastVersion.equals(versionId)) { + return new Id(itemId); + } else { + return new Id(versionId.toString()); + } + } + private static boolean isActiveVersion(String itemId, Version versionId) { + VersionInfoEntity versionInfo = + MigrationMain.versionInfoMap.get(itemId); + if (versionInfo == null) { + return false; + } + + return versionInfo.getActiveVersion().equals(versionId); + } + + +} \ No newline at end of file diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/Utils.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/Utils.java new file mode 100644 index 0000000000..ea026e5d4f --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/Utils.java @@ -0,0 +1,15 @@ +package org.openecomp.core.migration.util; + +import org.openecomp.sdc.logging.api.Logger; + +/** + * @author Avrahamg + * @since April 24, 2017 + */ +public class Utils { + public static void printMessage(Logger logger, String message) { + System.out.println(message); + logger.debug(message); + } +} + diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarker.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarker.java new file mode 100644 index 0000000000..4481b431ec --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarker.java @@ -0,0 +1,49 @@ +package org.openecomp.core.migration.util.marker; + +import com.datastax.driver.mapping.annotations.Accessor; +import com.datastax.driver.mapping.annotations.Query; +import org.openecomp.core.migration.MigrationMain; +import org.openecomp.core.nosqldb.api.NoSqlDb; +import org.openecomp.core.nosqldb.factory.NoSqlDbFactory; +import org.openecomp.sdc.logging.api.Logger; +import org.openecomp.sdc.logging.api.LoggerFactory; + +/** + * @author katyr + * @since May 01, 2017 + */ + +public class MigrationMarker { + + private static Logger logger = LoggerFactory.getLogger(MigrationMain.class); + + private static final NoSqlDb noSqlDb = NoSqlDbFactory.getInstance().createInterface(); + private static final MigrationTableAccessor accessor = + noSqlDb.getMappingManager().createAccessor(MigrationMarker.MigrationTableAccessor.class); + + public static Boolean isMigrated() { + + MigrationMarkerEntity result = accessor.isMigrated(); + if (result == null) { + return false; + } else { + return result.getMigrated(); + } + } + + public static void markMigrated() { + accessor.markMigrated(); + } + + @Accessor + interface MigrationTableAccessor { + @Query("SELECT * FROM migration where id='1'") + MigrationMarkerEntity isMigrated(); + + + @Query("insert into migration (id,isMigrated) values('1',true)") + void markMigrated(); + + } + +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarkerEntity.java b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarkerEntity.java new file mode 100644 index 0000000000..47bb91dc49 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/java/org/openecomp/core/migration/util/marker/MigrationMarkerEntity.java @@ -0,0 +1,45 @@ +package org.openecomp.core.migration.util.marker; + +import com.datastax.driver.mapping.annotations.ClusteringColumn; +import com.datastax.driver.mapping.annotations.Column; +import com.datastax.driver.mapping.annotations.Table; + +/** + * @author katyr + * @since May 03, 2017 + */ + +@Table(keyspace = "dox", name = "migration") +public class MigrationMarkerEntity { + + @ClusteringColumn + private String id; + + @Column(name = "ismigrated") + private Boolean migrated; + + public Boolean getMigrated() { + return migrated; + } + + public void setMigrated(Boolean migrated) { + this.migrated = migrated; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + @Override + public String toString() { + final StringBuilder sb = new StringBuilder("MigrationMarkerEntity{"); + sb.append("id='").append(id).append('\''); + sb.append(", migrated=").append(migrated); + sb.append('}'); + return sb.toString(); + } +} diff --git a/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/resources/logback.xml b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/resources/logback.xml new file mode 100644 index 0000000000..b1c1335302 --- /dev/null +++ b/openecomp-be/tools/migration/1702_to_1707_zusammen/src/main/resources/logback.xml @@ -0,0 +1,282 @@ + + + + + + + + + + + + + + + + + + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/all.log + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/all.log.%i + + 1 + 10 + + + + 20MB + + + ${default-log-pattern} + + + + + + + + + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/Error.log + + + + + + AUDIT_MARKER + + NEUTRAL + DENY + + + + + + TRANSACTION_MARKER + + NEUTRAL + DENY + + + + + INFO + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/Error.log.%i + + 1 + 10 + + + + 20MB + + + ${default-log-pattern} + + + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log + + + + + + + TRANSACTION_MARKER + + NEUTRAL + DENY + + + + + + + e.level.toInt() <= DEBUG.toInt() + + + DENY + NEUTRAL + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug.log.%i + + 1 + 10 + + + + 20MB + + + ${default-log-pattern} + + + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/cassandra2zusammen_migration_debug.log + + + + + + + TRANSACTION_MARKER + + NEUTRAL + DENY + + + + + + + e.level.toInt() <= DEBUG.toInt() + + + DENY + NEUTRAL + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/debug_by_package.log.%i + + 1 + 10 + + + + 20MB + + + ${asdc-debug-log-pattern} + + + + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/audit.log + + + + + + AUDIT_MARKER + + DENY + ACCEPT + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/audit.log.%i + + 1 + 10 + + + + 20MB + + + ${default-log-pattern} + + + + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/transaction.log + + + + + + TRANSACTION_MARKER + + DENY + ACCEPT + + + + ${log.home}/${ECOMP-component-name}/${ECOMP-subcomponent-name}/transaction.log.%i + + 1 + 10 + + + + 20MB + + + ${default-log-pattern} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/openecomp-be/tools/migration/README b/openecomp-be/tools/migration/README index 7bca1f3f5e..2245aafb99 100644 --- a/openecomp-be/tools/migration/README +++ b/openecomp-be/tools/migration/README @@ -44,9 +44,9 @@ Usage - Exmample for a valid output: - Name: VSP-OK, Id: 9DB0E1563B22481D911ECD33989E1FDD, Vendor: OPENECOMP, locked by: None, status not started + Name: VSP-OK, Id: 9DB0E1563B22481D911ECD33989E1FDD, Vendor: ABC, locked by: None, status not started Service VSP-OK was tested and does not need a migration - Name: VSP02-Checkout, Id: 8DF8D65535414AAAA23682E2532675E6, Vendor: OPENECOMP, locked by: cs0008, status not started + Name: VSP02-Checkout, Id: 8DF8D65535414AAAA23682E2532675E6, Vendor: ABC, locked by: cs0008, status not started Server Error Service VSP02-Checkout was tested and it needs a migration Service VSP02 - Migration start @@ -59,9 +59,9 @@ Usage - done upload Doing new checkin Service VSP-EMPTY - Migration end - Name: VSP-EMPTY, Id: D26892D2839746E18075EF49C4586320, Vendor: OPENECOMP, locked by: None, status not started + Name: VSP-EMPTY, Id: D26892D2839746E18075EF49C4586320, Vendor: ABC, locked by: None, status not started Service VSP-EMPTY was tested and does not need a migration - Name: VSP01, Id: 98F5DDFD4F684086801E86A88A0D77AB, Vendor: OPENECOMP, locked by: None, status not started + Name: VSP01, Id: 98F5DDFD4F684086801E86A88A0D77AB, Vendor: ABC, locked by: None, status not started Server Error Service VSP01 was tested and it needs a migration Service VSP-EMPTY - Migration start @@ -76,13 +76,13 @@ Usage - Example for a case with no migration needed: - Name: VSP-OK, Id: 9DB0E1563B22481D911ECD33989E1FDD, Vendor: OPENECOMP, locked by: None, status not started + Name: VSP-OK, Id: 9DB0E1563B22481D911ECD33989E1FDD, Vendor: ABC, locked by: None, status not started Service VSP-OK was tested and does not need a migration - Name: VSP02-Checkout, Id: 8DF8D65535414AAAA23682E2532675E6, Vendor: OPENECOMP, locked by: None, status not started + Name: VSP02-Checkout, Id: 8DF8D65535414AAAA23682E2532675E6, Vendor: ABC, locked by: None, status not started Service VSP02-Checkout was tested and does not need a migration - Name: VSP-EMPTY, Id: D26892D2839746E18075EF49C4586320, Vendor: OPENECOMP, locked by: None, status not started + Name: VSP-EMPTY, Id: D26892D2839746E18075EF49C4586320, Vendor: ABC, locked by: None, status not started Service VSP-EMPTY was tested and does not need a migration - Name: VSP01, Id: 98F5DDFD4F684086801E86A88A0D77AB, Vendor: OPENECOMP, locked by: None, status not started + Name: VSP01, Id: 98F5DDFD4F684086801E86A88A0D77AB, Vendor: ABC, locked by: None, status not started Service VSP01 was tested and does not need a migration diff --git a/openecomp-be/tools/migration/cassandra2zusammen.sh b/openecomp-be/tools/migration/cassandra2zusammen.sh new file mode 100644 index 0000000000..4765fc3684 --- /dev/null +++ b/openecomp-be/tools/migration/cassandra2zusammen.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +########################################################################################################### +# script name - cassandra2zusammen.sh +# run script - ./cassandra2zusammen.sh +# This script migrates ASDC 1st class citizen entities and their sub-entities from Cassandra to +# Zusammen. +# This script should be run when upgrading from 1702 to 1707 +########################################################################################################### + + +# change exist package and service templates in db +java -Dlog.home=/apps/jetty/base/be/logs -Dconfiguration.yaml=/apps/jetty/base/be/config/catalog-be/configuration.yaml -jar openecomp-zusammen-migration-1.0-SNAPSHOT.jar org.openecomp.core.migration.MigrationMain + +STATUS="${?}" echo "${STATUS}" echo "All log messages for the Cassandra2Zusammen +migration process are in /apps/jetty/base/be/logs/ASDC/ASDC- +BE/cassandra2zusammen_migration_debug.log" diff --git a/openecomp-be/tools/scripts/generate-manifest.py b/openecomp-be/tools/scripts/generate-manifest.py index 87968e0f89..4390dc27a1 100644 --- a/openecomp-be/tools/scripts/generate-manifest.py +++ b/openecomp-be/tools/scripts/generate-manifest.py @@ -31,8 +31,8 @@ ### ### ### Author: Avi Ziv -### Version 1.4 for OPENECOMP 1.0 -### Date: 13 July 2016 (c) OPENECOMP +### Version 1.4 for ASDC/AT&T 1.0 +### Date: 13 July 2016 ### ############################################################################## diff --git a/openecomp-be/tools/swagger-ui/api-docs/api.html b/openecomp-be/tools/swagger-ui/api-docs/api.html deleted file mode 100644 index b89547e308..0000000000 --- a/openecomp-be/tools/swagger-ui/api-docs/api.html +++ /dev/null @@ -1,13140 +0,0 @@ - - -API Document - - - -#Rest API - - -## HTTP:///onboarding-api - - -Rest API Documentation - - - -**Version** v1.0, build #${buildNumber} - - - - - - - - - - - - -# APIs - - -## /v1.0/application-configuration - - - - - - -### POST - - -<a id="insertToTable">Insert JSON schema into application config table</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>namespace</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>key</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/InputStream">InputStream</a> - </td> - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/application-configuration/{namespace} - - -### GET - -<a id="getListOfConfigurationByNamespaceFromTable">Get List of keys and values by namespace</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>namespace</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - - - -## /v1.0/application-configuration/{namespace}/{key} - - -### GET - -<a id="getFromTable">Get JSON schema by namespace and key</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>namespace</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>key</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/ConfigurationDataDto">ConfigurationDataDto</a>| - - - - - - - - - - - - - - - - - -## /v1.0/validation/{type}/validate - - - - - - -### POST - - -<a id="validateFile">Validate a package</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>type</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/InputStream">InputStream</a> - </td> - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-license-models - - -### GET - -<a id="listLicenseModels">List vendor license models</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>versionFilter</th> - <td>query</td> - <td>no</td> - <td>Currently supported value: &#x27;Final&#x27; - only vendor License models with final versions will be return - with their latest final version</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/VendorLicenseModelEntity">VendorLicenseModelEntity</a>]| - - - - - - -### POST - - -<a id="createLicenseModel">Create vendor license model</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/VendorLicenseModelRequest">VendorLicenseModelRequest</a> - </td> - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId} - - -### GET - -<a id="getLicenseModel">Get vendor license model</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/VendorLicenseModelEntity">VendorLicenseModelEntity</a>| - - - - -### PUT - -<a id="updateLicenseModel">Update vendor license model</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/VendorLicenseModelRequest">VendorLicenseModelRequest</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="deleteLicenseModel">Delete vendor license model</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/actions - - - - -### PUT - -<a id="actOnLicenseModel">Update vendor license model</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/VendorLicenseModelActionRequestDto">VendorLicenseModelActionRequestDto</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/entitlement-pools - - -### GET - -<a id="listEntitlementPools">List vendor entitlement pools</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/EntitlementPoolEntity">EntitlementPoolEntity</a>]| - - - - - - -### POST - - -<a id="createEntitlementPool">Create vendor entitlement pool</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/EntitlementPoolRequest">EntitlementPoolRequest</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/entitlement-pools/{entitlementPoolId} - - -### GET - -<a id="getEntitlementPool">Get vendor entitlement pool</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>entitlementPoolId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/EntitlementPoolEntity">EntitlementPoolEntity</a>| - - - - -### PUT - -<a id="updateEntitlementPool">Update vendor entitlement pool</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/EntitlementPoolRequest">EntitlementPoolRequest</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>entitlementPoolId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="deleteEntitlementPool">Delete vendor entitlement pool</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>entitlementPoolId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/feature-groups - - -### GET - -<a id="listFeatureGroups">List vendor feature groups</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/FeatureGroupEntity">FeatureGroupEntity</a>]| - - - - - - -### POST - - -<a id="createFeatureGroup">Create vendor feature group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/FeatureGroupRequest">FeatureGroupRequest</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/feature-groups/{featureGroupId} - - -### GET - -<a id="getFeatureGroup">Get vendor feature group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>featureGroupId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/FeatureGroupModel">FeatureGroupModel</a>| - - - - -### PUT - -<a id="updateFeatureGroup">Update vendor feature group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/FeatureGroupUpdateRequest">FeatureGroupUpdateRequest</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>featureGroupId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="deleteFeatureGroup">Delete vendor feature group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>featureGroupId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/license-agreements - - -### GET - -<a id="listLicenseAgreements">List vendor license agreements</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/LicenseAgreementEntity">LicenseAgreementEntity</a>]| - - - - - - -### POST - - -<a id="createLicenseAgreement">Create vendor license agreement</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/LicenseAgreementRequest">LicenseAgreementRequest</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/license-agreements/{licenseAgreementId} - - -### GET - -<a id="getLicenseAgreement">Get vendor license agreement</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>licenseAgreementId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/LicenseAgreementModel">LicenseAgreementModel</a>| - - - - -### PUT - -<a id="updateLicenseAgreement">Update vendor license agreement</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/LicenseAgreementUpdateRequest">LicenseAgreementUpdateRequest</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>licenseAgreementId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="deleteLicenseAgreement">Delete vendor license agreement</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>licenseAgreementId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/license-key-groups - - -### GET - -<a id="listLicenseKeyGroups">List vendor license key groups</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/LicenseKeyGroupEntityDto">LicenseKeyGroupEntityDto</a>]| - - - - - - -### POST - - -<a id="createLicenseKeyGroup">Create vendor license key group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/LicenseKeyGroupRequestDto">LicenseKeyGroupRequestDto</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-license-models/{vlmId}/license-key-groups/{licenseKeyGroupId} - - -### GET - -<a id="getLicenseKeyGroup">Get vendor license key group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>licenseKeyGroupId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/LicenseKeyGroupEntityDto">LicenseKeyGroupEntityDto</a>| - - - - -### PUT - -<a id="updateLicenseKeyGroup">Update vendor license key group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/LicenseKeyGroupRequestDto">LicenseKeyGroupRequestDto</a> - </td> - -</tr> - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>licenseKeyGroupId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="deleteLicenseKeyGroup">Delete vendor license key group</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vlmId</th> - <td>path</td> - <td>yes</td> - <td>Vendor license model Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>licenseKeyGroupId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products - - -### GET - -<a id="getVspList">Get list of vendor software products and their description</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>versionFilter</th> - <td>query</td> - <td>no</td> - <td>Currently supported values: &#x27;Final&#x27; - only vendor software products with final version will be return - with their latest final version</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### POST - - -<a id="createNewVsp">Create a new vendor software product</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/VspDescriptionDto">VspDescriptionDto</a> - </td> - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/VspCreationDto">VspCreationDto</a>| - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/packages - - -### GET - -<a id="listPackages">Get list of translated CSAR files details</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>category</th> - <td>query</td> - <td>no</td> - <td>Category</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>subCategory</th> - <td>query</td> - <td>no</td> - <td>Sub-category</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/PackageInfoDto">PackageInfoDto</a>]| - - - - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/packages/{vspId} - - -### GET - -<a id="getTranslatedFile">Get translated CSAR file</a> - -Exports translated file to a zip file - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/octet-stream - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/File">File</a>| - - - - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId} - - -### GET - -<a id="getVspDetails">Get details of a vendor software product</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - -### PUT - -<a id="updateVsp">Update an existing vendor software product</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/VspDescriptionDto">VspDescriptionDto</a> - </td> - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="deleteVsp">Deletes vendor software product by given id</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/actions - - - - -### PUT - -<a id="actOnVendorSoftwareProduct">Actions on a vendor software product</a> - -Performs one of the following actions on a vendor software product: |Checkout: Locks it for edits by other users. Only the locking user sees the edited version.|Undo_Checkout: Unlocks it and deletes the edits that were done.|Checkin: Unlocks it and activates the edited version to all users.| Submit: Finalize its active version.|Create_Package: Creates a CSAR zip file.| - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/VersionSoftwareProductActionRequestDto">VersionSoftwareProductActionRequestDto</a> - </td> - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components - - -### GET - -<a id="list">List vendor software product components</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/ComponentDto">ComponentDto</a>]| - - - - - - -### POST - - -<a id="create">Create a vendor software product component</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/ComponentRequestDto">ComponentRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - -### DELETE - -<a id="deleteList">Delete vendor software product components</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId} - - -### GET - -<a id="get">Get vendor software product component</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/ComponentData">ComponentData</a>| - - - - -### PUT - -<a id="update">Update vendor software product component</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/ComponentRequestDto">ComponentRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="delete">Delete vendor software product component</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp - - -### GET - -<a id="list">Get the filenames of uploaded MIB definitions</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/MibUploadStatusDto">MibUploadStatusDto</a>| - - - - - - - - -### DELETE - -<a id="deletePollMibFile">Delete vendor software product MIB Poll Definitions file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp-trap - - - - - - - - -### DELETE - -<a id="deleteTrapMibFile">Delete vendor software product MIB Trap Definitions file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp-trap/upload - - - - - - -### POST - - -<a id="uploadTrapMibFile">Upload vendor software product MIB Trap Definitions file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/Attachment">Attachment</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp/upload - - - - - - -### POST - - -<a id="uploadPollMibFile">Upload vendor software product MIB Poll Definitions file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/Attachment">Attachment</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/nics - - -### GET - -<a id="list">List vendor software product component NICs</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/NicDto">NicDto</a>]| - - - - - - -### POST - - -<a id="create">Create a vendor software product NIC</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/NicRequestDto">NicRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/nics/{nicId} - - -### GET - -<a id="get">Get vendor software product NIC</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>nicId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product NIC Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/NicDto">NicDto</a>| - - - - -### PUT - -<a id="update">Update vendor software product NIC</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/NicRequestDto">NicRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>nicId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product NIC Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="delete">Delete vendor software product NIC</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>nicId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product NIC Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/nics/{nicId}/questionnaire - - -### GET - -<a id="getQuestionnaire">Get vendor software product component NIC questionnaire</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>nicId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product NIC Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/QuestionnaireResponseDto">QuestionnaireResponseDto</a>| - - - - -### PUT - -<a id="updateQuestionnaire">Update vendor software product component NIC questionnaire</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>nicId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product NIC Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/processes - - -### GET - -<a id="list">List vendor software product component processes</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/ProcessEntityDto">ProcessEntityDto</a>]| - - - - - - -### POST - - -<a id="create">Create a vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/ProcessRequestDto">ProcessRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - -### DELETE - -<a id="deleteList">Delete vendor software product processes</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/processes/{processId} - - -### GET - -<a id="get">Get vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/ProcessEntityDto">ProcessEntityDto</a>| - - - - -### PUT - -<a id="update">Update vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/ProcessRequestDto">ProcessRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="delete">Delete vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/processes/{processId}/upload - - -### GET - -<a id="getUploadedFile">Get vendor software product process uploaded file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/octet-stream - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### POST - - -<a id="uploadFile">Update vendor software product process upload</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/Attachment">Attachment</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - -### DELETE - -<a id="deleteUploadedFile">Delete vendor software product process uploaded file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/components/{componentId}/questionnaire - - -### GET - -<a id="getQuestionnaire">Get vendor software product component questionnaire</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/QuestionnaireResponseDto">QuestionnaireResponseDto</a>| - - - - -### PUT - -<a id="updateQuestionnaire">Update vendor software product component questionnaire</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product component Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/downloadHeat - - -### GET - -<a id="getLatestHeatPackage">Get uploaded HEAT file</a> - -Downloads the latest HEAT package - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/octet-stream - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/File">File</a>| - - - - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/networks - - -### GET - -<a id="list">List vendor software product networks</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/NetworkDto">NetworkDto</a>]| - - - - - - -### POST - - -<a id="create">Create a vendor software product network</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/NetworkRequestDto">NetworkRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/networks/{networkId} - - -### GET - -<a id="get">Get vendor software product network</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>networkId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product network Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/NetworkDto">NetworkDto</a>| - - - - -### PUT - -<a id="update">Update vendor software product network</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/NetworkRequestDto">NetworkRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>networkId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product network Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="delete">Delete vendor software product network</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>networkId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product network Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/processes - - -### GET - -<a id="list">List vendor software product processes</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | Array[<a href="#/definitions/ProcessEntityDto">ProcessEntityDto</a>]| - - - - - - -### POST - - -<a id="create">Create a vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/ProcessRequestDto">ProcessRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - -### DELETE - -<a id="deleteList">Delete vendor software product processes</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/processes/{processId} - - -### GET - -<a id="get">Get vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/ProcessEntityDto">ProcessEntityDto</a>| - - - - -### PUT - -<a id="update">Update vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/ProcessRequestDto">ProcessRequestDto</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="delete">Delete vendor software product process</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/processes/{processId}/upload - - -### GET - -<a id="getUploadedFile">Get vendor software product process uploaded file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/octet-stream - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### POST - - -<a id="uploadFile">Update vendor software product process upload</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/Attachment">Attachment</a> - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - -### DELETE - -<a id="deleteUploadedFile">Delete vendor software product process uploaded file</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>processId</th> - <td>path</td> - <td>yes</td> - <td>Vendor software product process Id</td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/questionnaire - - -### GET - -<a id="getQuestionnaire">Get vendor software product questionnaire</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/QuestionnaireResponseDto">QuestionnaireResponseDto</a>| - - - - -### PUT - -<a id="updateQuestionnaire">Update vendor software product questionnaire</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - -## /v1.0/vendor-software-products/{vspId}/upload - - - - - - -### POST - - -<a id="uploadFile">Uploads a HEAT package to translate</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vspId</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/InputStream">InputStream</a> - </td> - -</tr> - -<tr> - <th>USER_ID</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| 200 | successful operation | <a href="#/definitions/UploadFileResponseDto">UploadFileResponseDto</a>| - - - - - - - - - - - - - - -## /workflow/v1.0/actions - - -### GET - -<a id="getFilteredActions">List Filtered Actions </a> - -Get list of actions based on a filter criteria | If no filter is sent all actions will be returned - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>vendor</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>category</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>name</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>modelId</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>componentId</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### POST - - -<a id="createAction">Create a new Action</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /workflow/v1.0/actions/components - - -### GET - -<a id="getEcompComponents">List ECOMP Components supported by Action Library</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - - - - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - - - -## /workflow/v1.0/actions/{actionInvariantUUID} - - -### GET - -<a id="getActionsByActionInvariantUuId">List Actions For Given Action Invariant UUID</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionInvariantUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>version</th> - <td>query</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - -### PUT - -<a id="updateAction">Update an existing action</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionInvariantUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - -### POST - - -<a id="actOnAction">Actions on a action</a> - -Performs one of the following actions on a action: |Checkout: Locks it for edits by other users. Only the locking user sees the edited version.|Undo_Checkout: Unlocks it and deletes the edits that were done.|Checkin: Unlocks it and activates the edited version to all users.| Submit: Finalize its active version.| - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionInvariantUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - -### DELETE - -<a id="deleteAction">Delete Action</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionInvariantUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /workflow/v1.0/actions/{actionInvariantUUID}/artifacts - - - - - - -### POST - - -<a id="uploadArtifact">Upload new Artifact</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionInvariantUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>Content-MD5</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/Attachment">Attachment</a> - </td> - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - -## /workflow/v1.0/actions/{actionInvariantUUID}/artifacts/{artifactUUID} - - - - -### PUT - -<a id="updateArtifact">Update an existing artifact</a> - - - - - - - - - -#### Request - - -**Content-Type: ** multipart/form-data - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionInvariantUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>artifactUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - - </td> - -</tr> - -<tr> - <th>Content-MD5</th> - <td>header</td> - <td>no</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>body</th> - <td>body</td> - <td>no</td> - <td></td> - <td> - </td> - - <td> - - <a href="#/definitions/Attachment">Attachment</a> - </td> - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - -### DELETE - -<a id="deleteArtifact">Delete Artifact</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionInvariantUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>artifactUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/json - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - -## /workflow/v1.0/actions/{actionUUID}/artifacts/{artifactUUID} - - -### GET - -<a id="downloadArtifact">Downloads artifact for action</a> - - - - - - - - - -#### Request - - -**Content-Type: ** application/json - -##### Parameters - -<table border="1"> - <tr> - <th>Name</th> - <th>Located in</th> - <th>Required</th> - <th>Description</th> - <th>Default</th> - <th>Schema</th> - </tr> - - - -<tr> - <th>actionUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - -<tr> - <th>artifactUUID</th> - <td>path</td> - <td>yes</td> - <td></td> - <td> - </td> - - - <td>string </td> - - -</tr> - - -</table> - - - -#### Response - -**Content-Type: ** application/octet-stream - - -| Status Code | Reason | Response Model | -|-------------|-------------|----------------| -| default | successful operation | - | - - - - - - - - - - - - - - - - - - -# Definitions - -## <a name="/definitions/Attachment">Attachment</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>headers</td> - <td> - - - object - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>object</td> - <td> - - - object - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>contentType</td> - <td> - - <a href="#/definitions/MediaType">MediaType</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>contentDisposition</td> - <td> - - <a href="#/definitions/ContentDisposition">ContentDisposition</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>dataHandler</td> - <td> - - <a href="#/definitions/DataHandler">DataHandler</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>contentId</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ChoiceOrOtherDtoAggregationFunction">ChoiceOrOtherDtoAggregationFunction</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>choice</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>other</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ChoiceOrOtherDtoEntitlementMetric">ChoiceOrOtherDtoEntitlementMetric</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>choice</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>other</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ChoiceOrOtherDtoEntitlementTime">ChoiceOrOtherDtoEntitlementTime</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>choice</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>other</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ChoiceOrOtherDtoLicenseTerm">ChoiceOrOtherDtoLicenseTerm</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>choice</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>other</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/CommandInfo">CommandInfo</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>commandClass</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>commandName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ComponentData">ComponentData</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>displayName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ComponentDto">ComponentDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>displayName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ComponentRequestDto">ComponentRequestDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>displayName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ConfigurationDataDto">ConfigurationDataDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>value</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>timeStamp</td> - <td> - - - integer (int64) - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ContentDisposition">ContentDisposition</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>type</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>parameters</td> - <td> - - - object - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>filename</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/DataFlavor">DataFlavor</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>mimeType</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>humanPresentableName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>defaultRepresentationClassAsString</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>primaryType</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>flavorJavaFileListType</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>flavorRemoteObjectType</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>flavorSerializedObjectType</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>flavorTextType</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>mimeTypeSerializedObject</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>representationClassByteBuffer</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>representationClassCharBuffer</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>representationClassInputStream</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>representationClassReader</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>representationClassRemote</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>representationClassSerializable</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>subType</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/DataHandler">DataHandler</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>dataSource</td> - <td> - - <a href="#/definitions/DataSource">DataSource</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>inputStream</td> - <td> - - <a href="#/definitions/InputStream">InputStream</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>content</td> - <td> - - - object - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>contentType</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>outputStream</td> - <td> - - <a href="#/definitions/OutputStream">OutputStream</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>allCommands</td> - <td> - - - array[<a href="#/definitions/CommandInfo">CommandInfo</a>] - - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>preferredCommands</td> - <td> - - - array[<a href="#/definitions/CommandInfo">CommandInfo</a>] - - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>transferDataFlavors</td> - <td> - - - array[<a href="#/definitions/DataFlavor">DataFlavor</a>] - - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/DataSource">DataSource</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>inputStream</td> - <td> - - <a href="#/definitions/InputStream">InputStream</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>contentType</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>outputStream</td> - <td> - - <a href="#/definitions/OutputStream">OutputStream</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/EntitlementPoolEntity">EntitlementPoolEntity</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>thresholdValue</td> - <td> - - - integer (int32) - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>thresholdUnits</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>entitlementMetric</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoEntitlementMetric">ChoiceOrOtherDtoEntitlementMetric</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>increments</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>aggregationFunction</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoAggregationFunction">ChoiceOrOtherDtoAggregationFunction</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>operationalScope</td> - <td> - - <a href="#/definitions/MultiChoiceOrOtherDtoOperationalScope">MultiChoiceOrOtherDtoOperationalScope</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>time</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoEntitlementTime">ChoiceOrOtherDtoEntitlementTime</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>manufacturerReferenceNumber</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>referencingFeatureGroups</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/EntitlementPoolRequest">EntitlementPoolRequest</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>thresholdValue</td> - <td> - - - integer (int32) - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>thresholdUnits</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>entitlementMetric</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoEntitlementMetric">ChoiceOrOtherDtoEntitlementMetric</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>increments</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>aggregationFunction</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoAggregationFunction">ChoiceOrOtherDtoAggregationFunction</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>operationalScope</td> - <td> - - <a href="#/definitions/MultiChoiceOrOtherDtoOperationalScope">MultiChoiceOrOtherDtoOperationalScope</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>time</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoEntitlementTime">ChoiceOrOtherDtoEntitlementTime</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>manufacturerReferenceNumber</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ErrorMessage">ErrorMessage</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>level</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>message</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/FeatureGroupEntity">FeatureGroupEntity</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>partNumber</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licenseKeyGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>entitlementPoolsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>referencingLicenseAgreements</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/FeatureGroupModel">FeatureGroupModel</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>partNumber</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>referencingLicenseAgreements</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licenseKeyGroups</td> - <td> - - - array[<a href="#/definitions/LicenseKeyGroupEntityDto">LicenseKeyGroupEntityDto</a>] - - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>entitlementPools</td> - <td> - - - array[<a href="#/definitions/EntitlementPoolEntity">EntitlementPoolEntity</a>] - - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/FeatureGroupRequest">FeatureGroupRequest</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>partNumber</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>addedLicenseKeyGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>addedEntitlementPoolsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/FeatureGroupUpdateRequest">FeatureGroupUpdateRequest</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>partNumber</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>addedLicenseKeyGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>addedEntitlementPoolsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>removedLicenseKeyGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>removedEntitlementPoolsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/File">File</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>path</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>canonicalPath</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>parent</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>absolute</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>absoluteFile</td> - <td> - - <a href="#/definitions/File">File</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>absolutePath</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>canonicalFile</td> - <td> - - <a href="#/definitions/File">File</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>freeSpace</td> - <td> - - - integer (int64) - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>parentFile</td> - <td> - - <a href="#/definitions/File">File</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>totalSpace</td> - <td> - - - integer (int64) - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>usableSpace</td> - <td> - - - integer (int64) - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>directory</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>file</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>hidden</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/InputStream">InputStream</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - -</table> - -## <a name="/definitions/LicenseAgreementEntity">LicenseAgreementEntity</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licenseTerm</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoLicenseTerm">ChoiceOrOtherDtoLicenseTerm</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>requirementsAndConstrains</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>featureGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/LicenseAgreementModel">LicenseAgreementModel</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licenseTerm</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoLicenseTerm">ChoiceOrOtherDtoLicenseTerm</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>requirementsAndConstrains</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>featureGroups</td> - <td> - - - array[<a href="#/definitions/FeatureGroupEntity">FeatureGroupEntity</a>] - - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/LicenseAgreementRequest">LicenseAgreementRequest</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licenseTerm</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoLicenseTerm">ChoiceOrOtherDtoLicenseTerm</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>requirementsAndConstrains</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>addedFeatureGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/LicenseAgreementUpdateRequest">LicenseAgreementUpdateRequest</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licenseTerm</td> - <td> - - <a href="#/definitions/ChoiceOrOtherDtoLicenseTerm">ChoiceOrOtherDtoLicenseTerm</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>requirementsAndConstrains</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>addedFeatureGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>removedFeatureGroupsIds</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/LicenseKeyGroupEntityDto">LicenseKeyGroupEntityDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>type</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>operationalScope</td> - <td> - - <a href="#/definitions/MultiChoiceOrOtherDtoOperationalScope">MultiChoiceOrOtherDtoOperationalScope</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>referencingFeatureGroups</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/LicenseKeyGroupRequestDto">LicenseKeyGroupRequestDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>type</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>operationalScope</td> - <td> - - <a href="#/definitions/MultiChoiceOrOtherDtoOperationalScope">MultiChoiceOrOtherDtoOperationalScope</a> - - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/LicensingData">LicensingData</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>licenseAgreement</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>featureGroups</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/MediaType">MediaType</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>type</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>subtype</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>parameters</td> - <td> - - - object - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>wildcardType</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>wildcardSubtype</td> - <td> - - - boolean - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/MibUploadStatusDto">MibUploadStatusDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>snmpTrap</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>snmpPoll</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/MultiChoiceOrOtherDtoOperationalScope">MultiChoiceOrOtherDtoOperationalScope</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>choices</td> - <td> - - - array[string] - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>other</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/NetworkDto">NetworkDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>dhcp</td> - <td> - - - boolean - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/NetworkRequestDto">NetworkRequestDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>dhcp</td> - <td> - - - boolean - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/NicDto">NicDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>networkId</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>networkName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/NicRequestDto">NicRequestDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>networkId</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/OutputStream">OutputStream</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - -</table> - -## <a name="/definitions/PackageInfoDto">PackageInfoDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>displayName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>vspName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>version</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>packageId</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>category</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>subCategory</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>vendorName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>vendorRelease</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>packageChecksum</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>packageType</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ProcessEntityDto">ProcessEntityDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>artifactName</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/ProcessRequestDto">ProcessRequestDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/QuestionnaireResponseDto">QuestionnaireResponseDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>schema</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>data</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/UploadFileResponseDto">UploadFileResponseDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>fileNames</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>errors</td> - <td> - - - object - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>status</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/VendorLicenseModelActionRequestDto">VendorLicenseModelActionRequestDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>action</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/VendorLicenseModelEntity">VendorLicenseModelEntity</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>vendorName</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>iconRef</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>id</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>version</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>status</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>lockingUser</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>viewableVersions</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>finalVersions</td> - <td> - - - array[string] - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/VendorLicenseModelRequest">VendorLicenseModelRequest</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>vendorName</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>iconRef</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/VersionSoftwareProductActionRequestDto">VersionSoftwareProductActionRequestDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>action</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/VspCreationDto">VspCreationDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>vspId</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - -## <a name="/definitions/VspDescriptionDto">VspDescriptionDto</a> - -<table border="1"> - <tr> - <th>name</th> - <th>type</th> - <th>required</th> - <th>description</th> - <th>example</th> - </tr> - - <tr> - <td>name</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>description</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>icon</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>category</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>subCategory</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>vendorName</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>vendorId</td> - <td> - - - string - - </td> - <td>required</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licensingVersion</td> - <td> - - - string - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - - <tr> - <td>licensingData</td> - <td> - - <a href="#/definitions/LicensingData">LicensingData</a> - - - </td> - <td>optional</td> - <td>-</td> - <td></td> - </tr> - -</table> - - - - - \ No newline at end of file diff --git a/openecomp-be/tools/swagger-ui/api-docs/api.json b/openecomp-be/tools/swagger-ui/api-docs/api.json deleted file mode 100644 index efcb5e84ab..0000000000 --- a/openecomp-be/tools/swagger-ui/api-docs/api.json +++ /dev/null @@ -1,4676 +0,0 @@ -{ - "swagger" : "2.0", - "info" : { - "description" : "Rest API Documentation", - "version" : "v1.0, build #${buildNumber}", - "title" : "Rest API", - "termsOfService" : "http://www.github.com/kongchen/swagger-maven-plugin" - }, - "basePath" : "/onboarding-api", - "tags" : [ { - "name" : "Vendor Software Product Component NICs" - }, { - "name" : "Vendor Software Product Component Processes" - }, { - "name" : "Vendor Software Product Component MIB Uploads" - }, { - "name" : "Vendor License Model - License Key Groups" - }, { - "name" : "Application Configuration" - }, { - "name" : "Vendor License Model - License Agreements" - }, { - "name" : "Vendor License Model - Feature Groups" - }, { - "name" : "Vendor Software Product Processes" - }, { - "name" : "Actions" - }, { - "name" : "Validation" - }, { - "name" : "Vendor Software Product Components" - }, { - "name" : "Vendor Software Products" - }, { - "name" : "Vendor Software Product Networks" - }, { - "name" : "Vendor License Model - Entitlement Pools" - }, { - "name" : "Vendor License Models" - } ], - "schemes" : [ "http" ], - "paths" : { - "/v1.0/application-configuration" : { - "post" : { - "tags" : [ "Application Configuration" ], - "summary" : "Insert JSON schema into application config table", - "description" : "", - "operationId" : "insertToTable", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "namespace", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "key", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/InputStream" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/application-configuration/{namespace}" : { - "get" : { - "tags" : [ "Application Configuration" ], - "summary" : "Get List of keys and values by namespace", - "description" : "", - "operationId" : "getListOfConfigurationByNamespaceFromTable", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "namespace", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/application-configuration/{namespace}/{key}" : { - "get" : { - "tags" : [ "Application Configuration" ], - "summary" : "Get JSON schema by namespace and key", - "description" : "", - "operationId" : "getFromTable", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "namespace", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "key", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ConfigurationDataDto" - } - } - } - } - }, - "/v1.0/validation/{type}/validate" : { - "post" : { - "tags" : [ "Validation" ], - "summary" : "Validate a package", - "description" : "", - "operationId" : "validateFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "type", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/InputStream" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models" : { - "get" : { - "tags" : [ "Vendor License Models" ], - "summary" : "List vendor license models", - "description" : "", - "operationId" : "listLicenseModels", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "versionFilter", - "in" : "query", - "description" : "Currently supported value: 'Final' - only vendor License models with final versions will be return - with their latest final version", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/VendorLicenseModelEntity" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor License Models" ], - "summary" : "Create vendor license model", - "description" : "", - "operationId" : "createLicenseModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/VendorLicenseModelRequest" - } - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}" : { - "get" : { - "tags" : [ "Vendor License Models" ], - "summary" : "Get vendor license model", - "description" : "", - "operationId" : "getLicenseModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/VendorLicenseModelEntity" - } - } - } - }, - "put" : { - "tags" : [ "Vendor License Models" ], - "summary" : "Update vendor license model", - "description" : "", - "operationId" : "updateLicenseModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/VendorLicenseModelRequest" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor License Models" ], - "summary" : "Delete vendor license model", - "description" : "", - "operationId" : "deleteLicenseModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/actions" : { - "put" : { - "tags" : [ "Vendor License Models" ], - "summary" : "Update vendor license model", - "description" : "", - "operationId" : "actOnLicenseModel", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/VendorLicenseModelActionRequestDto" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/entitlement-pools" : { - "get" : { - "tags" : [ "Vendor License Model - Entitlement Pools" ], - "summary" : "List vendor entitlement pools", - "description" : "", - "operationId" : "listEntitlementPools", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/EntitlementPoolEntity" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor License Model - Entitlement Pools" ], - "summary" : "Create vendor entitlement pool", - "description" : "", - "operationId" : "createEntitlementPool", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/EntitlementPoolRequest" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/entitlement-pools/{entitlementPoolId}" : { - "get" : { - "tags" : [ "Vendor License Model - Entitlement Pools" ], - "summary" : "Get vendor entitlement pool", - "description" : "", - "operationId" : "getEntitlementPool", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "entitlementPoolId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/EntitlementPoolEntity" - } - } - } - }, - "put" : { - "tags" : [ "Vendor License Model - Entitlement Pools" ], - "summary" : "Update vendor entitlement pool", - "description" : "", - "operationId" : "updateEntitlementPool", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/EntitlementPoolRequest" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "entitlementPoolId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor License Model - Entitlement Pools" ], - "summary" : "Delete vendor entitlement pool", - "description" : "", - "operationId" : "deleteEntitlementPool", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "entitlementPoolId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/feature-groups" : { - "get" : { - "tags" : [ "Vendor License Model - Feature Groups" ], - "summary" : "List vendor feature groups", - "description" : "", - "operationId" : "listFeatureGroups", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/FeatureGroupEntity" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor License Model - Feature Groups" ], - "summary" : "Create vendor feature group", - "description" : "", - "operationId" : "createFeatureGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/FeatureGroupRequest" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/feature-groups/{featureGroupId}" : { - "get" : { - "tags" : [ "Vendor License Model - Feature Groups" ], - "summary" : "Get vendor feature group", - "description" : "", - "operationId" : "getFeatureGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "featureGroupId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/FeatureGroupModel" - } - } - } - }, - "put" : { - "tags" : [ "Vendor License Model - Feature Groups" ], - "summary" : "Update vendor feature group", - "description" : "", - "operationId" : "updateFeatureGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/FeatureGroupUpdateRequest" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "featureGroupId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor License Model - Feature Groups" ], - "summary" : "Delete vendor feature group", - "description" : "", - "operationId" : "deleteFeatureGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "featureGroupId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/license-agreements" : { - "get" : { - "tags" : [ "Vendor License Model - License Agreements" ], - "summary" : "List vendor license agreements", - "description" : "", - "operationId" : "listLicenseAgreements", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/LicenseAgreementEntity" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor License Model - License Agreements" ], - "summary" : "Create vendor license agreement", - "description" : "", - "operationId" : "createLicenseAgreement", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/LicenseAgreementRequest" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/license-agreements/{licenseAgreementId}" : { - "get" : { - "tags" : [ "Vendor License Model - License Agreements" ], - "summary" : "Get vendor license agreement", - "description" : "", - "operationId" : "getLicenseAgreement", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "licenseAgreementId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/LicenseAgreementModel" - } - } - } - }, - "put" : { - "tags" : [ "Vendor License Model - License Agreements" ], - "summary" : "Update vendor license agreement", - "description" : "", - "operationId" : "updateLicenseAgreement", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/LicenseAgreementUpdateRequest" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "licenseAgreementId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor License Model - License Agreements" ], - "summary" : "Delete vendor license agreement", - "description" : "", - "operationId" : "deleteLicenseAgreement", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "licenseAgreementId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/license-key-groups" : { - "get" : { - "tags" : [ "Vendor License Model - License Key Groups" ], - "summary" : "List vendor license key groups", - "description" : "", - "operationId" : "listLicenseKeyGroups", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/LicenseKeyGroupEntityDto" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor License Model - License Key Groups" ], - "summary" : "Create vendor license key group", - "description" : "", - "operationId" : "createLicenseKeyGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/LicenseKeyGroupRequestDto" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-license-models/{vlmId}/license-key-groups/{licenseKeyGroupId}" : { - "get" : { - "tags" : [ "Vendor License Model - License Key Groups" ], - "summary" : "Get vendor license key group", - "description" : "", - "operationId" : "getLicenseKeyGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "licenseKeyGroupId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/LicenseKeyGroupEntityDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor License Model - License Key Groups" ], - "summary" : "Update vendor license key group", - "description" : "", - "operationId" : "updateLicenseKeyGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/LicenseKeyGroupRequestDto" - } - }, { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "licenseKeyGroupId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor License Model - License Key Groups" ], - "summary" : "Delete vendor license key group", - "description" : "", - "operationId" : "deleteLicenseKeyGroup", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vlmId", - "in" : "path", - "description" : "Vendor license model Id", - "required" : true, - "type" : "string" - }, { - "name" : "licenseKeyGroupId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products" : { - "get" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Get list of vendor software products and their description", - "description" : "", - "operationId" : "getVspList", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "versionFilter", - "in" : "query", - "description" : "Currently supported values: 'Final' - only vendor software products with final version will be return - with their latest final version", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "post" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Create a new vendor software product", - "description" : "", - "operationId" : "createNewVsp", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/VspDescriptionDto" - } - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/VspCreationDto" - } - } - } - } - }, - "/v1.0/vendor-software-products/packages" : { - "get" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Get list of translated CSAR files details", - "description" : "", - "operationId" : "listPackages", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "category", - "in" : "query", - "description" : "Category", - "required" : false, - "type" : "string" - }, { - "name" : "subCategory", - "in" : "query", - "description" : "Sub-category", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/PackageInfoDto" - } - } - } - } - } - }, - "/v1.0/vendor-software-products/packages/{vspId}" : { - "get" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Get translated CSAR file", - "description" : "Exports translated file to a zip file", - "operationId" : "getTranslatedFile", - "consumes" : [ "application/json" ], - "produces" : [ "application/octet-stream" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/File" - } - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}" : { - "get" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Get details of a vendor software product", - "description" : "", - "operationId" : "getVspDetails", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "put" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Update an existing vendor software product", - "description" : "", - "operationId" : "updateVsp", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/VspDescriptionDto" - } - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Deletes vendor software product by given id", - "description" : "", - "operationId" : "deleteVsp", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/actions" : { - "put" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Actions on a vendor software product", - "description" : "Performs one of the following actions on a vendor software product: |Checkout: Locks it for edits by other users. Only the locking user sees the edited version.|Undo_Checkout: Unlocks it and deletes the edits that were done.|Checkin: Unlocks it and activates the edited version to all users.| Submit: Finalize its active version.|Create_Package: Creates a CSAR zip file.|", - "operationId" : "actOnVendorSoftwareProduct", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/VersionSoftwareProductActionRequestDto" - } - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components" : { - "get" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "List vendor software product components", - "description" : "", - "operationId" : "list", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ComponentDto" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "Create a vendor software product component", - "description" : "", - "operationId" : "create", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/ComponentRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "Delete vendor software product components", - "description" : "", - "operationId" : "deleteList", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}" : { - "get" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "Get vendor software product component", - "description" : "", - "operationId" : "get", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ComponentData" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "Update vendor software product component", - "description" : "", - "operationId" : "update", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/ComponentRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "Delete vendor software product component", - "description" : "", - "operationId" : "delete", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp" : { - "get" : { - "tags" : [ "Vendor Software Product Component MIB Uploads" ], - "summary" : "Get the filenames of uploaded MIB definitions", - "description" : "", - "operationId" : "list", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/MibUploadStatusDto" - } - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Component MIB Uploads" ], - "summary" : "Delete vendor software product MIB Poll Definitions file", - "description" : "", - "operationId" : "deletePollMibFile", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp-trap" : { - "delete" : { - "tags" : [ "Vendor Software Product Component MIB Uploads" ], - "summary" : "Delete vendor software product MIB Trap Definitions file", - "description" : "", - "operationId" : "deleteTrapMibFile", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp-trap/upload" : { - "post" : { - "tags" : [ "Vendor Software Product Component MIB Uploads" ], - "summary" : "Upload vendor software product MIB Trap Definitions file", - "description" : "", - "operationId" : "uploadTrapMibFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/Attachment" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/monitors/snmp/upload" : { - "post" : { - "tags" : [ "Vendor Software Product Component MIB Uploads" ], - "summary" : "Upload vendor software product MIB Poll Definitions file", - "description" : "", - "operationId" : "uploadPollMibFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/Attachment" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/nics" : { - "get" : { - "tags" : [ "Vendor Software Product Component NICs" ], - "summary" : "List vendor software product component NICs", - "description" : "", - "operationId" : "list", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/NicDto" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor Software Product Component NICs" ], - "summary" : "Create a vendor software product NIC", - "description" : "", - "operationId" : "create", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/NicRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/nics/{nicId}" : { - "get" : { - "tags" : [ "Vendor Software Product Component NICs" ], - "summary" : "Get vendor software product NIC", - "description" : "", - "operationId" : "get", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "nicId", - "in" : "path", - "description" : "Vendor software product NIC Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/NicDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Product Component NICs" ], - "summary" : "Update vendor software product NIC", - "description" : "", - "operationId" : "update", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/NicRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "nicId", - "in" : "path", - "description" : "Vendor software product NIC Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Component NICs" ], - "summary" : "Delete vendor software product NIC", - "description" : "", - "operationId" : "delete", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "nicId", - "in" : "path", - "description" : "Vendor software product NIC Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/nics/{nicId}/questionnaire" : { - "get" : { - "tags" : [ "Vendor Software Product Component NICs" ], - "summary" : "Get vendor software product component NIC questionnaire", - "description" : "", - "operationId" : "getQuestionnaire", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "nicId", - "in" : "path", - "description" : "Vendor software product NIC Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/QuestionnaireResponseDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Product Component NICs" ], - "summary" : "Update vendor software product component NIC questionnaire", - "description" : "", - "operationId" : "updateQuestionnaire", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "nicId", - "in" : "path", - "description" : "Vendor software product NIC Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/processes" : { - "get" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "List vendor software product component processes", - "description" : "", - "operationId" : "list", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ProcessEntityDto" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Create a vendor software product process", - "description" : "", - "operationId" : "create", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/ProcessRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Delete vendor software product processes", - "description" : "", - "operationId" : "deleteList", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/processes/{processId}" : { - "get" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Get vendor software product process", - "description" : "", - "operationId" : "get", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ProcessEntityDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Update vendor software product process", - "description" : "", - "operationId" : "update", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/ProcessRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Delete vendor software product process", - "description" : "", - "operationId" : "delete", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/processes/{processId}/upload" : { - "get" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Get vendor software product process uploaded file", - "description" : "", - "operationId" : "getUploadedFile", - "consumes" : [ "application/json" ], - "produces" : [ "application/octet-stream" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "post" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Update vendor software product process upload", - "description" : "", - "operationId" : "uploadFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/Attachment" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Component Processes" ], - "summary" : "Delete vendor software product process uploaded file", - "description" : "", - "operationId" : "deleteUploadedFile", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/components/{componentId}/questionnaire" : { - "get" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "Get vendor software product component questionnaire", - "description" : "", - "operationId" : "getQuestionnaire", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/QuestionnaireResponseDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Product Components" ], - "summary" : "Update vendor software product component questionnaire", - "description" : "", - "operationId" : "updateQuestionnaire", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "componentId", - "in" : "path", - "description" : "Vendor software product component Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/downloadHeat" : { - "get" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Get uploaded HEAT file", - "description" : "Downloads the latest HEAT package", - "operationId" : "getLatestHeatPackage", - "consumes" : [ "application/json" ], - "produces" : [ "application/octet-stream" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/File" - } - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/networks" : { - "get" : { - "tags" : [ "Vendor Software Product Networks" ], - "summary" : "List vendor software product networks", - "description" : "", - "operationId" : "list", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/NetworkDto" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor Software Product Networks" ], - "summary" : "Create a vendor software product network", - "description" : "", - "operationId" : "create", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/NetworkRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/networks/{networkId}" : { - "get" : { - "tags" : [ "Vendor Software Product Networks" ], - "summary" : "Get vendor software product network", - "description" : "", - "operationId" : "get", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "networkId", - "in" : "path", - "description" : "Vendor software product network Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/NetworkDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Product Networks" ], - "summary" : "Update vendor software product network", - "description" : "", - "operationId" : "update", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/NetworkRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "networkId", - "in" : "path", - "description" : "Vendor software product network Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Networks" ], - "summary" : "Delete vendor software product network", - "description" : "", - "operationId" : "delete", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "networkId", - "in" : "path", - "description" : "Vendor software product network Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/processes" : { - "get" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "List vendor software product processes", - "description" : "", - "operationId" : "list", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ProcessEntityDto" - } - } - } - } - }, - "post" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Create a vendor software product process", - "description" : "", - "operationId" : "create", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/ProcessRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Delete vendor software product processes", - "description" : "", - "operationId" : "deleteList", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/processes/{processId}" : { - "get" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Get vendor software product process", - "description" : "", - "operationId" : "get", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/ProcessEntityDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Update vendor software product process", - "description" : "", - "operationId" : "update", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/ProcessRequestDto" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Delete vendor software product process", - "description" : "", - "operationId" : "delete", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/processes/{processId}/upload" : { - "get" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Get vendor software product process uploaded file", - "description" : "", - "operationId" : "getUploadedFile", - "consumes" : [ "application/json" ], - "produces" : [ "application/octet-stream" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "post" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Update vendor software product process upload", - "description" : "", - "operationId" : "uploadFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/Attachment" - } - }, { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Vendor Software Product Processes" ], - "summary" : "Delete vendor software product process uploaded file", - "description" : "", - "operationId" : "deleteUploadedFile", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "description" : "Vendor software product Id", - "required" : true, - "type" : "string" - }, { - "name" : "processId", - "in" : "path", - "description" : "Vendor software product process Id", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/questionnaire" : { - "get" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Get vendor software product questionnaire", - "description" : "", - "operationId" : "getQuestionnaire", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/QuestionnaireResponseDto" - } - } - } - }, - "put" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Update vendor software product questionnaire", - "description" : "", - "operationId" : "updateQuestionnaire", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/v1.0/vendor-software-products/{vspId}/upload" : { - "post" : { - "tags" : [ "Vendor Software Products" ], - "summary" : "Uploads a HEAT package to translate", - "description" : "", - "operationId" : "uploadFile", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vspId", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/InputStream" - } - }, { - "name" : "USER_ID", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - } ], - "responses" : { - "200" : { - "description" : "successful operation", - "schema" : { - "$ref" : "#/definitions/UploadFileResponseDto" - } - } - } - } - }, - "/workflow/v1.0/actions" : { - "get" : { - "tags" : [ "Actions" ], - "summary" : "List Filtered Actions ", - "description" : "Get list of actions based on a filter criteria | If no filter is sent all actions will be returned", - "operationId" : "getFilteredActions", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "vendor", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "category", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "name", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "modelId", - "in" : "query", - "required" : false, - "type" : "string" - }, { - "name" : "componentId", - "in" : "query", - "required" : false, - "type" : "string" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "post" : { - "tags" : [ "Actions" ], - "summary" : "Create a new Action", - "description" : "", - "operationId" : "createAction", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/workflow/v1.0/actions/components" : { - "get" : { - "tags" : [ "Actions" ], - "summary" : "List ECOMP Components supported by Action Library", - "description" : "", - "operationId" : "getEcompComponents", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/workflow/v1.0/actions/{actionInvariantUUID}" : { - "get" : { - "tags" : [ "Actions" ], - "summary" : "List Actions For Given Action Invariant UUID", - "description" : "", - "operationId" : "getActionsByActionInvariantUuId", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "actionInvariantUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "version", - "in" : "query", - "required" : false, - "type" : "string" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "post" : { - "tags" : [ "Actions" ], - "summary" : "Actions on a action", - "description" : "Performs one of the following actions on a action: |Checkout: Locks it for edits by other users. Only the locking user sees the edited version.|Undo_Checkout: Unlocks it and deletes the edits that were done.|Checkin: Unlocks it and activates the edited version to all users.| Submit: Finalize its active version.|", - "operationId" : "actOnAction", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "actionInvariantUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "put" : { - "tags" : [ "Actions" ], - "summary" : "Update an existing action", - "description" : "", - "operationId" : "updateAction", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "actionInvariantUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Actions" ], - "summary" : "Delete Action", - "description" : "", - "operationId" : "deleteAction", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "actionInvariantUUID", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/workflow/v1.0/actions/{actionInvariantUUID}/artifacts" : { - "post" : { - "tags" : [ "Actions" ], - "summary" : "Upload new Artifact", - "description" : "", - "operationId" : "uploadArtifact", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "actionInvariantUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "Content-MD5", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/Attachment" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/workflow/v1.0/actions/{actionInvariantUUID}/artifacts/{artifactUUID}" : { - "put" : { - "tags" : [ "Actions" ], - "summary" : "Update an existing artifact", - "description" : "", - "operationId" : "updateArtifact", - "consumes" : [ "multipart/form-data" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "actionInvariantUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "artifactUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "type" : "string" - } - }, { - "name" : "Content-MD5", - "in" : "header", - "required" : false, - "type" : "string", - "default" : "" - }, { - "in" : "body", - "name" : "body", - "required" : false, - "schema" : { - "$ref" : "#/definitions/Attachment" - } - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - }, - "delete" : { - "tags" : [ "Actions" ], - "summary" : "Delete Artifact", - "description" : "", - "operationId" : "deleteArtifact", - "consumes" : [ "application/json" ], - "produces" : [ "application/json" ], - "parameters" : [ { - "name" : "actionInvariantUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "artifactUUID", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - }, - "/workflow/v1.0/actions/{actionUUID}/artifacts/{artifactUUID}" : { - "get" : { - "tags" : [ "Actions" ], - "summary" : "Downloads artifact for action", - "description" : "", - "operationId" : "downloadArtifact", - "consumes" : [ "application/json" ], - "produces" : [ "application/octet-stream" ], - "parameters" : [ { - "name" : "actionUUID", - "in" : "path", - "required" : true, - "type" : "string" - }, { - "name" : "artifactUUID", - "in" : "path", - "required" : true, - "type" : "string" - } ], - "responses" : { - "default" : { - "description" : "successful operation" - } - } - } - } - }, - "definitions" : { - "Attachment" : { - "type" : "object", - "properties" : { - "headers" : { - "type" : "object", - "additionalProperties" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - }, - "object" : { - "type" : "object" - }, - "contentType" : { - "$ref" : "#/definitions/MediaType" - }, - "contentId" : { - "type" : "string" - }, - "contentDisposition" : { - "$ref" : "#/definitions/ContentDisposition" - }, - "dataHandler" : { - "$ref" : "#/definitions/DataHandler" - } - } - }, - "ChoiceOrOtherDtoAggregationFunction" : { - "type" : "object", - "required" : [ "choice", "other" ], - "properties" : { - "choice" : { - "type" : "string", - "enum" : [ "Peak", "Average", "Other" ] - }, - "other" : { - "type" : "string" - } - } - }, - "ChoiceOrOtherDtoEntitlementMetric" : { - "type" : "object", - "required" : [ "choice", "other" ], - "properties" : { - "choice" : { - "type" : "string", - "enum" : [ "Software_Instances_Count", "Core", "CPU", "Trunks", "User", "Subscribers", "Tenants", "Tokens", "Seats", "Units_TB", "Units_MB", "Units_GB", "Other" ] - }, - "other" : { - "type" : "string" - } - } - }, - "ChoiceOrOtherDtoEntitlementTime" : { - "type" : "object", - "required" : [ "choice", "other" ], - "properties" : { - "choice" : { - "type" : "string", - "enum" : [ "Hour", "Day", "Month", "Quarter", "Year", "Other" ] - }, - "other" : { - "type" : "string" - } - } - }, - "ChoiceOrOtherDtoLicenseTerm" : { - "type" : "object", - "required" : [ "choice", "other" ], - "properties" : { - "choice" : { - "type" : "string", - "enum" : [ "Fixed_Term", "Perpetual", "Unlimited", "Other" ] - }, - "other" : { - "type" : "string" - } - } - }, - "CommandInfo" : { - "type" : "object", - "properties" : { - "commandClass" : { - "type" : "string" - }, - "commandName" : { - "type" : "string" - } - } - }, - "ComponentData" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "displayName" : { - "type" : "string" - } - } - }, - "ComponentDto" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "displayName" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "id" : { - "type" : "string" - } - } - }, - "ComponentRequestDto" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "displayName" : { - "type" : "string" - }, - "description" : { - "type" : "string" - } - } - }, - "ConfigurationDataDto" : { - "type" : "object", - "properties" : { - "value" : { - "type" : "string" - }, - "timeStamp" : { - "type" : "integer", - "format" : "int64" - } - } - }, - "ContentDisposition" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string" - }, - "parameters" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - }, - "filename" : { - "type" : "string" - } - } - }, - "DataFlavor" : { - "type" : "object", - "properties" : { - "mimeType" : { - "type" : "string" - }, - "humanPresentableName" : { - "type" : "string" - }, - "subType" : { - "type" : "string" - }, - "defaultRepresentationClassAsString" : { - "type" : "string" - }, - "primaryType" : { - "type" : "string" - }, - "flavorJavaFileListType" : { - "type" : "boolean", - "default" : false - }, - "flavorRemoteObjectType" : { - "type" : "boolean", - "default" : false - }, - "flavorSerializedObjectType" : { - "type" : "boolean", - "default" : false - }, - "flavorTextType" : { - "type" : "boolean", - "default" : false - }, - "mimeTypeSerializedObject" : { - "type" : "boolean", - "default" : false - }, - "representationClassByteBuffer" : { - "type" : "boolean", - "default" : false - }, - "representationClassCharBuffer" : { - "type" : "boolean", - "default" : false - }, - "representationClassInputStream" : { - "type" : "boolean", - "default" : false - }, - "representationClassReader" : { - "type" : "boolean", - "default" : false - }, - "representationClassRemote" : { - "type" : "boolean", - "default" : false - }, - "representationClassSerializable" : { - "type" : "boolean", - "default" : false - } - } - }, - "DataHandler" : { - "type" : "object", - "properties" : { - "dataSource" : { - "$ref" : "#/definitions/DataSource" - }, - "name" : { - "type" : "string" - }, - "inputStream" : { - "$ref" : "#/definitions/InputStream" - }, - "content" : { - "type" : "object" - }, - "contentType" : { - "type" : "string" - }, - "outputStream" : { - "$ref" : "#/definitions/OutputStream" - }, - "allCommands" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CommandInfo" - } - }, - "preferredCommands" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/CommandInfo" - } - }, - "transferDataFlavors" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/DataFlavor" - } - } - } - }, - "DataSource" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "inputStream" : { - "$ref" : "#/definitions/InputStream" - }, - "contentType" : { - "type" : "string" - }, - "outputStream" : { - "$ref" : "#/definitions/OutputStream" - } - } - }, - "EntitlementPoolEntity" : { - "type" : "object", - "required" : [ "aggregationFunction", "description", "entitlementMetric", "manufacturerReferenceNumber", "name", "operationalScope", "thresholdUnits", "thresholdValue", "time" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "thresholdValue" : { - "type" : "integer", - "format" : "int32" - }, - "thresholdUnits" : { - "type" : "string", - "enum" : [ "Absolute", "Percentage" ] - }, - "entitlementMetric" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoEntitlementMetric" - }, - "increments" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "aggregationFunction" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoAggregationFunction" - }, - "operationalScope" : { - "$ref" : "#/definitions/MultiChoiceOrOtherDtoOperationalScope" - }, - "time" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoEntitlementTime" - }, - "manufacturerReferenceNumber" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 100 - }, - "id" : { - "type" : "string" - }, - "referencingFeatureGroups" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "EntitlementPoolRequest" : { - "type" : "object", - "required" : [ "aggregationFunction", "description", "entitlementMetric", "manufacturerReferenceNumber", "name", "operationalScope", "thresholdUnits", "thresholdValue", "time" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "thresholdValue" : { - "type" : "integer", - "format" : "int32" - }, - "thresholdUnits" : { - "type" : "string", - "enum" : [ "Absolute", "Percentage" ] - }, - "entitlementMetric" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoEntitlementMetric" - }, - "increments" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "aggregationFunction" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoAggregationFunction" - }, - "operationalScope" : { - "$ref" : "#/definitions/MultiChoiceOrOtherDtoOperationalScope" - }, - "time" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoEntitlementTime" - }, - "manufacturerReferenceNumber" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 100 - } - } - }, - "ErrorMessage" : { - "type" : "object", - "properties" : { - "level" : { - "type" : "string", - "enum" : [ "ERROR", "WARNING", "INFO" ] - }, - "message" : { - "type" : "string" - } - } - }, - "FeatureGroupEntity" : { - "type" : "object", - "required" : [ "description", "name", "partNumber" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "partNumber" : { - "type" : "string" - }, - "id" : { - "type" : "string" - }, - "licenseKeyGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "entitlementPoolsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "referencingLicenseAgreements" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "FeatureGroupModel" : { - "type" : "object", - "required" : [ "description", "name", "partNumber" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "partNumber" : { - "type" : "string" - }, - "id" : { - "type" : "string" - }, - "referencingLicenseAgreements" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "licenseKeyGroups" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/LicenseKeyGroupEntityDto" - } - }, - "entitlementPools" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/EntitlementPoolEntity" - } - } - } - }, - "FeatureGroupRequest" : { - "type" : "object", - "required" : [ "description", "name", "partNumber" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "partNumber" : { - "type" : "string" - }, - "addedLicenseKeyGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "addedEntitlementPoolsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "FeatureGroupUpdateRequest" : { - "type" : "object", - "required" : [ "description", "name", "partNumber" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "partNumber" : { - "type" : "string" - }, - "addedLicenseKeyGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "addedEntitlementPoolsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "removedLicenseKeyGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "removedEntitlementPoolsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "File" : { - "type" : "object", - "properties" : { - "path" : { - "type" : "string" - }, - "name" : { - "type" : "string" - }, - "canonicalPath" : { - "type" : "string" - }, - "parent" : { - "type" : "string" - }, - "absolute" : { - "type" : "boolean", - "default" : false - }, - "absoluteFile" : { - "$ref" : "#/definitions/File" - }, - "absolutePath" : { - "type" : "string" - }, - "canonicalFile" : { - "$ref" : "#/definitions/File" - }, - "freeSpace" : { - "type" : "integer", - "format" : "int64" - }, - "parentFile" : { - "$ref" : "#/definitions/File" - }, - "totalSpace" : { - "type" : "integer", - "format" : "int64" - }, - "usableSpace" : { - "type" : "integer", - "format" : "int64" - }, - "directory" : { - "type" : "boolean", - "default" : false - }, - "file" : { - "type" : "boolean", - "default" : false - }, - "hidden" : { - "type" : "boolean", - "default" : false - } - } - }, - "InputStream" : { - "type" : "object" - }, - "LicenseAgreementEntity" : { - "type" : "object", - "required" : [ "description", "licenseTerm", "name" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "licenseTerm" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoLicenseTerm" - }, - "requirementsAndConstrains" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "id" : { - "type" : "string" - }, - "featureGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "LicenseAgreementModel" : { - "type" : "object", - "required" : [ "description", "licenseTerm", "name" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "licenseTerm" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoLicenseTerm" - }, - "requirementsAndConstrains" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "id" : { - "type" : "string" - }, - "featureGroups" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "$ref" : "#/definitions/FeatureGroupEntity" - } - } - } - }, - "LicenseAgreementRequest" : { - "type" : "object", - "required" : [ "description", "licenseTerm", "name" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "licenseTerm" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoLicenseTerm" - }, - "requirementsAndConstrains" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "addedFeatureGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "LicenseAgreementUpdateRequest" : { - "type" : "object", - "required" : [ "description", "licenseTerm", "name" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "licenseTerm" : { - "$ref" : "#/definitions/ChoiceOrOtherDtoLicenseTerm" - }, - "requirementsAndConstrains" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "addedFeatureGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - }, - "removedFeatureGroupsIds" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "LicenseKeyGroupEntityDto" : { - "type" : "object", - "required" : [ "description", "name", "operationalScope", "type" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "type" : { - "type" : "string", - "enum" : [ "Universal", "Unique", "One_Time" ] - }, - "operationalScope" : { - "$ref" : "#/definitions/MultiChoiceOrOtherDtoOperationalScope" - }, - "id" : { - "type" : "string" - }, - "referencingFeatureGroups" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string" - } - } - } - }, - "LicenseKeyGroupRequestDto" : { - "type" : "object", - "required" : [ "description", "name", "operationalScope", "type" ], - "properties" : { - "name" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 120 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "type" : { - "type" : "string", - "enum" : [ "Universal", "Unique", "One_Time" ] - }, - "operationalScope" : { - "$ref" : "#/definitions/MultiChoiceOrOtherDtoOperationalScope" - } - } - }, - "LicensingData" : { - "type" : "object", - "properties" : { - "licenseAgreement" : { - "type" : "string" - }, - "featureGroups" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - } - }, - "MediaType" : { - "type" : "object", - "properties" : { - "type" : { - "type" : "string" - }, - "subtype" : { - "type" : "string" - }, - "parameters" : { - "type" : "object", - "additionalProperties" : { - "type" : "string" - } - }, - "wildcardType" : { - "type" : "boolean", - "default" : false - }, - "wildcardSubtype" : { - "type" : "boolean", - "default" : false - } - } - }, - "MibUploadStatusDto" : { - "type" : "object", - "properties" : { - "snmpTrap" : { - "type" : "string" - }, - "snmpPoll" : { - "type" : "string" - } - } - }, - "MultiChoiceOrOtherDtoOperationalScope" : { - "type" : "object", - "required" : [ "choices", "other" ], - "properties" : { - "choices" : { - "type" : "array", - "uniqueItems" : true, - "items" : { - "type" : "string", - "enum" : [ "Network_Wide", "Availability_Zone", "Data_Center", "Tenant", "VM", "CPU", "Core", "Other" ] - } - }, - "other" : { - "type" : "string" - } - } - }, - "NetworkDto" : { - "type" : "object", - "required" : [ "dhcp", "name" ], - "properties" : { - "name" : { - "type" : "string" - }, - "dhcp" : { - "type" : "boolean", - "default" : false - }, - "id" : { - "type" : "string" - } - } - }, - "NetworkRequestDto" : { - "type" : "object", - "required" : [ "dhcp", "name" ], - "properties" : { - "name" : { - "type" : "string" - }, - "dhcp" : { - "type" : "boolean", - "default" : false - } - } - }, - "NicDto" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "networkId" : { - "type" : "string" - }, - "id" : { - "type" : "string" - }, - "networkName" : { - "type" : "string" - } - } - }, - "NicRequestDto" : { - "type" : "object", - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "networkId" : { - "type" : "string" - } - } - }, - "OutputStream" : { - "type" : "object" - }, - "PackageInfoDto" : { - "type" : "object", - "properties" : { - "displayName" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "vspName" : { - "type" : "string" - }, - "version" : { - "type" : "string" - }, - "packageId" : { - "type" : "string" - }, - "category" : { - "type" : "string" - }, - "subCategory" : { - "type" : "string" - }, - "vendorName" : { - "type" : "string" - }, - "vendorRelease" : { - "type" : "string" - }, - "packageChecksum" : { - "type" : "string" - }, - "packageType" : { - "type" : "string" - } - } - }, - "ProcessEntityDto" : { - "type" : "object", - "required" : [ "name" ], - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "id" : { - "type" : "string" - }, - "artifactName" : { - "type" : "string" - } - } - }, - "ProcessRequestDto" : { - "type" : "object", - "required" : [ "name" ], - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" - } - } - }, - "QuestionnaireResponseDto" : { - "type" : "object", - "properties" : { - "schema" : { - "type" : "string" - }, - "data" : { - "type" : "string" - } - } - }, - "UploadFileResponseDto" : { - "type" : "object", - "properties" : { - "fileNames" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - "errors" : { - "type" : "object", - "additionalProperties" : { - "type" : "array", - "items" : { - "$ref" : "#/definitions/ErrorMessage" - } - } - }, - "status" : { - "type" : "string", - "enum" : [ "Success", "Failure" ] - } - } - }, - "VendorLicenseModelActionRequestDto" : { - "type" : "object", - "properties" : { - "action" : { - "type" : "string", - "enum" : [ "Checkout", "Undo_Checkout", "Checkin", "Submit" ] - } - } - }, - "VendorLicenseModelEntity" : { - "type" : "object", - "required" : [ "description", "iconRef", "vendorName" ], - "properties" : { - "vendorName" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 25 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "iconRef" : { - "type" : "string" - }, - "id" : { - "type" : "string" - }, - "version" : { - "type" : "string" - }, - "status" : { - "type" : "string", - "enum" : [ "Available", "Locked", "Final" ] - }, - "lockingUser" : { - "type" : "string" - }, - "viewableVersions" : { - "type" : "array", - "items" : { - "type" : "string" - } - }, - "finalVersions" : { - "type" : "array", - "items" : { - "type" : "string" - } - } - } - }, - "VendorLicenseModelRequest" : { - "type" : "object", - "required" : [ "description", "iconRef", "vendorName" ], - "properties" : { - "vendorName" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 25 - }, - "description" : { - "type" : "string", - "minLength" : 0, - "maxLength" : 1000 - }, - "iconRef" : { - "type" : "string" - } - } - }, - "VersionSoftwareProductActionRequestDto" : { - "type" : "object", - "properties" : { - "action" : { - "type" : "string", - "enum" : [ "Checkout", "Undo_Checkout", "Checkin", "Submit", "Create_Package" ] - } - } - }, - "VspCreationDto" : { - "type" : "object", - "properties" : { - "vspId" : { - "type" : "string" - } - } - }, - "VspDescriptionDto" : { - "type" : "object", - "required" : [ "category", "description", "name", "subCategory", "vendorId", "vendorName" ], - "properties" : { - "name" : { - "type" : "string" - }, - "description" : { - "type" : "string" - }, - "icon" : { - "type" : "string" - }, - "category" : { - "type" : "string" - }, - "subCategory" : { - "type" : "string" - }, - "vendorName" : { - "type" : "string" - }, - "vendorId" : { - "type" : "string" - }, - "licensingVersion" : { - "type" : "string" - }, - "licensingData" : { - "$ref" : "#/definitions/LicensingData" - } - } - } - } -} \ No newline at end of file diff --git a/openecomp-be/tools/swagger-ui/lang/en.js b/openecomp-be/tools/swagger-ui/lang/en.js index 9ed12ccffb..776a8b72e0 100644 --- a/openecomp-be/tools/swagger-ui/lang/en.js +++ b/openecomp-be/tools/swagger-ui/lang/en.js @@ -1,23 +1,3 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /* jshint quotmark: double */ diff --git a/openecomp-be/tools/swagger-ui/lang/es.js b/openecomp-be/tools/swagger-ui/lang/es.js index bd948fc27b..a8dff60b6a 100644 --- a/openecomp-be/tools/swagger-ui/lang/es.js +++ b/openecomp-be/tools/swagger-ui/lang/es.js @@ -1,23 +1,3 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /* jshint quotmark: double */ diff --git a/openecomp-be/tools/swagger-ui/lang/ja.js b/openecomp-be/tools/swagger-ui/lang/ja.js index 895353c525..3207bfc0ba 100644 --- a/openecomp-be/tools/swagger-ui/lang/ja.js +++ b/openecomp-be/tools/swagger-ui/lang/ja.js @@ -1,30 +1,10 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"警告: 廃止予定", "Implementation Notes":"実装メモ", - "Response Class":"レス�?ンスクラス", + "Response Class":"レスãƒãƒ³ã‚¹ã‚¯ãƒ©ã‚¹", "Status":"ステータス", "Parameters":"パラメータ群", "Parameter":"パラメータ", @@ -32,42 +12,42 @@ window.SwaggerTranslator.learn({ "Description":"説明", "Parameter Type":"パラメータタイプ", "Data Type":"データタイプ", - "Response Messages":"レス�?ンスメッセージ", + "Response Messages":"レスãƒãƒ³ã‚¹ãƒ¡ãƒƒã‚»ãƒ¼ã‚¸", "HTTP Status Code":"HTTPステータスコード", - "Reason":"�?�由", - "Response Model":"レス�?ンスモデル", + "Reason":"ç†ç”±", + "Response Model":"レスãƒãƒ³ã‚¹ãƒ¢ãƒ‡ãƒ«", "Request URL":"リクエストURL", - "Response Body":"レス�?ンスボディ", - "Response Code":"レス�?ンスコード", - "Response Headers":"レス�?ンスヘッダ", - "Hide Response":"レス�?ンスを隠�?�", + "Response Body":"レスãƒãƒ³ã‚¹ãƒœãƒ‡ã‚£", + "Response Code":"レスãƒãƒ³ã‚¹ã‚³ãƒ¼ãƒ‰", + "Response Headers":"レスãƒãƒ³ã‚¹ãƒ˜ãƒƒãƒ€", + "Hide Response":"レスãƒãƒ³ã‚¹ã‚’éš ã™", "Headers":"ヘッダ", - "Try it out!":"実際�?�実行!", - "Show/Hide":"表示/�?�表示", - "List Operations":"�?作一覧", - "Expand Operations":"�?作�?�展開", + "Try it out!":"実際ã«å®Ÿè¡Œ!", + "Show/Hide":"表示/éžè¡¨ç¤º", + "List Operations":"æ“作一覧", + "Expand Operations":"æ“作ã®å±•é–‹", "Raw":"Raw", - "can't parse JSON. Raw result":"JSON�?�解釈�?��??�?��?�ん. 未加工�?��?æžœ", + "can't parse JSON. Raw result":"JSONã¸è§£é‡ˆã§ãã¾ã›ã‚“. 未加工ã®çµæžœ", "Model Schema":"モデルスキーマ", "Model":"モデル", "apply":"実行", - "Username":"ユーザ�??", + "Username":"ユーザå", "Password":"パスワード", - "Terms of service":"サービス利用�?ç´„", + "Terms of service":"サービス利用è¦ç´„", "Created by":"Created by", "See more at":"See more at", - "Contact the developer":"開発者�?�連絡", - "api version":"API�?ージョン", - "Response Content Type":"レス�?ンス コンテンツタイプ", - "fetching resource":"リソース�?��?�得", - "fetching resource list":"リソース一覧�?��?�得", + "Contact the developer":"開発者ã«é€£çµ¡", + "api version":"APIãƒãƒ¼ã‚¸ãƒ§ãƒ³", + "Response Content Type":"レスãƒãƒ³ã‚¹ コンテンツタイプ", + "fetching resource":"リソースã®å–å¾—", + "fetching resource list":"リソース一覧ã®å–å¾—", "Explore":"Explore", - "Show Swagger Petstore Example Apis":"SwaggerペットストアAPI�?�表示", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"サー�?�?�ら読�?�込�?�?��?�ん. �?�切�?�access-control-origin設定を�?�?��?��?��?��?��?�能性�?��?�り�?��?�.", - "Please specify the protocol for":"プロトコルを指定�?��?��??�?��?��?�", - "Can't read swagger JSON from":"次�?�らswagger JSONを読�?�込�?�?��?�ん", - "Finished Loading Resource Information. Rendering Swagger UI":"リソース情報�?�読�?�込�?��?�完了�?��?��?��?�. Swagger UIを�??画�?��?��?��?��?�", - "Unable to read api":"APIを読�?�込�?�?��?�ん", - "from path":"次�?�パス�?�ら", - "server returned":"サー�?�?�ら�?�返答" + "Show Swagger Petstore Example Apis":"SwaggerペットストアAPIã®è¡¨ç¤º", + "Can't read from server. It may not have the appropriate access-control-origin settings.":"サーãƒã‹ã‚‰èª­ã¿è¾¼ã‚ã¾ã›ã‚“. é©åˆ‡ãªaccess-control-origin設定をæŒã£ã¦ã„ãªã„å¯èƒ½æ€§ãŒã‚ã‚Šã¾ã™.", + "Please specify the protocol for":"プロトコルを指定ã—ã¦ãã ã•ã„", + "Can't read swagger JSON from":"次ã‹ã‚‰swagger JSONを読ã¿è¾¼ã‚ã¾ã›ã‚“", + "Finished Loading Resource Information. Rendering Swagger UI":"リソース情報ã®èª­ã¿è¾¼ã¿ãŒå®Œäº†ã—ã¾ã—ãŸ. Swagger UIã‚’æç”»ã—ã¦ã„ã¾ã™", + "Unable to read api":"APIを読ã¿è¾¼ã‚ã¾ã›ã‚“", + "from path":"次ã®ãƒ‘スã‹ã‚‰", + "server returned":"サーãƒã‹ã‚‰ã®è¿”ç­”" }); diff --git a/openecomp-be/tools/swagger-ui/lang/pt.js b/openecomp-be/tools/swagger-ui/lang/pt.js index a74b4a3d01..f2e7c13d41 100644 --- a/openecomp-be/tools/swagger-ui/lang/pt.js +++ b/openecomp-be/tools/swagger-ui/lang/pt.js @@ -1,23 +1,3 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /* jshint quotmark: double */ diff --git a/openecomp-be/tools/swagger-ui/lang/ru.js b/openecomp-be/tools/swagger-ui/lang/ru.js index ce117fd84e..065100f73f 100644 --- a/openecomp-be/tools/swagger-ui/lang/ru.js +++ b/openecomp-be/tools/swagger-ui/lang/ru.js @@ -1,23 +1,3 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /* jshint quotmark: double */ @@ -25,48 +5,48 @@ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Ворнинг: Депрекейтед", "Implementation Notes":"Заметки", "Response Class":"Пример ответа", - "Status":"Стату�?", + "Status":"СтатуÑ", "Parameters":"Параметры", "Parameter":"Параметр", "Value":"Значение", - "Description":"Опи�?ание", + "Description":"ОпиÑание", "Parameter Type":"Тип параметра", "Data Type":"Тип данных", "HTTP Status Code":"HTTP код", "Reason":"Причина", "Response Model":"Структура ответа", - "Request URL":"URL запро�?а", + "Request URL":"URL запроÑа", "Response Body":"Тело ответа", "Response Code":"HTTP код ответа", "Response Headers":"Заголовки ответа", - "Hide Response":"Спр�?тать ответ", + "Hide Response":"СпрÑтать ответ", "Response Messages":"Что может прийти в ответ", "Try it out!":"Попробовать!", "Show/Hide":"Показать/Скрыть", "List Operations":"Операции кратко", "Expand Operations":"Операции подробно", - "Raw":"Ð’ �?ыром виде", - "can't parse JSON. Raw result":"�?е удает�?�? ра�?пар�?ить ответ:", + "Raw":"Ð’ Ñыром виде", + "can't parse JSON. Raw result":"Ðе удаетÑÑ Ñ€Ð°ÑпарÑить ответ:", "Model Schema":"Структура", - "Model":"Опи�?ание", + "Model":"ОпиÑание", "apply":"применить", - "Username":"Им�? пользовател�?", + "Username":"Ð˜Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ", "Password":"Пароль", - "Terms of service":"У�?лови�? и�?пользовани�?", + "Terms of service":"УÑÐ»Ð¾Ð²Ð¸Ñ Ð¸ÑпользованиÑ", "Created by":"Разработано", "See more at":"Еще тут", - "Contact the developer":"Св�?зать�?�? �? разработчиком", - "api version":"Вер�?и�? API", + "Contact the developer":"СвÑзатьÑÑ Ñ Ñ€Ð°Ð·Ñ€Ð°Ð±Ð¾Ñ‚Ñ‡Ð¸ÐºÐ¾Ð¼", + "api version":"ВерÑÐ¸Ñ API", "Response Content Type":"Content Type ответа", - "fetching resource":"Получение ре�?ур�?а", - "fetching resource list":"Получение ре�?ур�?ов", + "fetching resource":"Получение реÑурÑа", + "fetching resource list":"Получение реÑурÑов", "Explore":"Поехали", - "Show Swagger Petstore Example Apis":"Показать примеры �?ПИ", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"�?е удает�?�? получить ответ от �?ервера. Возможно, кака�?-то лажа �? на�?тройками до�?тупа", - "Please specify the protocol for":"Пожалуй�?та, укажите протогол дл�?", - "Can't read swagger JSON from":"�?е получает�?�? прочитать swagger json из", - "Finished Loading Resource Information. Rendering Swagger UI":"Загрузка информации о ре�?ур�?ах завершена. Рендерим", - "Unable to read api":"�?е удало�?ÑŒ прочитать api", - "from path":"по адре�?у", - "server returned":"�?ервер �?казал" + "Show Swagger Petstore Example Apis":"Показать примеры ÐПИ", + "Can't read from server. It may not have the appropriate access-control-origin settings.":"Ðе удаетÑÑ Ð¿Ð¾Ð»ÑƒÑ‡Ð¸Ñ‚ÑŒ ответ от Ñервера. Возможно, какаÑ-то лажа Ñ Ð½Ð°Ñтройками доÑтупа", + "Please specify the protocol for":"ПожалуйÑта, укажите протогол длÑ", + "Can't read swagger JSON from":"Ðе получаетÑÑ Ð¿Ñ€Ð¾Ñ‡Ð¸Ñ‚Ð°Ñ‚ÑŒ swagger json из", + "Finished Loading Resource Information. Rendering Swagger UI":"Загрузка информации о реÑурÑах завершена. Рендерим", + "Unable to read api":"Ðе удалоÑÑŒ прочитать api", + "from path":"по адреÑу", + "server returned":"Ñервер Ñказал" }); diff --git a/openecomp-be/tools/swagger-ui/lang/tr.js b/openecomp-be/tools/swagger-ui/lang/tr.js index 359583e4b4..16426a9c34 100644 --- a/openecomp-be/tools/swagger-ui/lang/tr.js +++ b/openecomp-be/tools/swagger-ui/lang/tr.js @@ -1,23 +1,3 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /* jshint quotmark: double */ diff --git a/openecomp-be/tools/swagger-ui/lang/translator.js b/openecomp-be/tools/swagger-ui/lang/translator.js index 9232ac18a6..591f6d4094 100644 --- a/openecomp-be/tools/swagger-ui/lang/translator.js +++ b/openecomp-be/tools/swagger-ui/lang/translator.js @@ -1,23 +1,3 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /** diff --git a/openecomp-be/tools/swagger-ui/lang/zh-cn.js b/openecomp-be/tools/swagger-ui/lang/zh-cn.js index e1fde6e7cc..570319ba15 100644 --- a/openecomp-be/tools/swagger-ui/lang/zh-cn.js +++ b/openecomp-be/tools/swagger-ui/lang/zh-cn.js @@ -1,73 +1,53 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - 'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"警告:已过时", "Implementation Notes":"实现备注", - "Response Class":"�?应类", - "Status":"状�?", - "Parameters":"�?�数", - "Parameter":"�?�数", + "Response Class":"å“应类", + "Status":"状æ€", + "Parameters":"å‚æ•°", + "Parameter":"å‚æ•°", "Value":"值", - "Description":"�??è¿°", - "Parameter Type":"�?�数类型", - "Data Type":"数�?�类型", - "Response Messages":"�?应消�?�", - "HTTP Status Code":"HTTP状�?�?", + "Description":"æè¿°", + "Parameter Type":"å‚数类型", + "Data Type":"æ•°æ®ç±»åž‹", + "Response Messages":"å“应消æ¯", + "HTTP Status Code":"HTTP状æ€ç ", "Reason":"原因", - "Response Model":"�?应模型", + "Response Model":"å“应模型", "Request URL":"请求URL", - "Response Body":"�?应体", - "Response Code":"�?应�?", - "Response Headers":"�?应头", - "Hide Response":"�?�?�?应", + "Response Body":"å“应体", + "Response Code":"å“应ç ", + "Response Headers":"å“应头", + "Hide Response":"éšè—å“应", "Headers":"头", - "Try it out!":"试一下�?", - "Show/Hide":"显示/�?�?", - "List Operations":"显示�?作", - "Expand Operations":"展开�?作", + "Try it out!":"试一下ï¼", + "Show/Hide":"显示/éšè—", + "List Operations":"显示æ“作", + "Expand Operations":"展开æ“作", "Raw":"原始", - "can't parse JSON. Raw result":"无法解�?JSON. 原始结果", + "can't parse JSON. Raw result":"无法解æžJSON. 原始结果", "Model Schema":"模型架构", "Model":"模型", "apply":"应用", - "Username":"用户�??", - "Password":"密�?", - "Terms of service":"�?务�?�款", + "Username":"用户å", + "Password":"密ç ", + "Terms of service":"æœåŠ¡æ¡æ¬¾", "Created by":"创建者", "See more at":"查看更多:", - "Contact the developer":"�?�系开�?�者", + "Contact the developer":"è”系开å‘者", "api version":"api版本", - "Response Content Type":"�?应Content Type", - "fetching resource":"正在获�?�资�?", - "fetching resource list":"正在获�?�资�?列表", - "Explore":"�?览", + "Response Content Type":"å“应Content Type", + "fetching resource":"正在获å–资æº", + "fetching resource list":"正在获å–资æºåˆ—表", + "Explore":"æµè§ˆ", "Show Swagger Petstore Example Apis":"显示 Swagger Petstore 示例 Apis", - "Can't read from server. It may not have the appropriate access-control-origin settings.":"无法从�?务器读�?�。�?�能没有正确设置access-control-origin。", - "Please specify the protocol for":"请指定�??议:", - "Can't read swagger JSON from":"无法读�?�swagger JSON于", - "Finished Loading Resource Information. Rendering Swagger UI":"已加载资�?信�?�。正在渲染Swagger UI", - "Unable to read api":"无法读�?�api", + "Can't read from server. It may not have the appropriate access-control-origin settings.":"无法从æœåŠ¡å™¨è¯»å–。å¯èƒ½æ²¡æœ‰æ­£ç¡®è®¾ç½®access-control-origin。", + "Please specify the protocol for":"请指定å议:", + "Can't read swagger JSON from":"无法读å–swagger JSON于", + "Finished Loading Resource Information. Rendering Swagger UI":"已加载资æºä¿¡æ¯ã€‚正在渲染Swagger UI", + "Unable to read api":"无法读å–api", "from path":"从路径", - "server returned":"�?务器返回" + "server returned":"æœåŠ¡å™¨è¿”回" }); diff --git a/openecomp-be/tools/swagger-ui/lib/backbone-min.js b/openecomp-be/tools/swagger-ui/lib/backbone-min.js index f082fcffca..a3f544be6d 100644 --- a/openecomp-be/tools/swagger-ui/lib/backbone-min.js +++ b/openecomp-be/tools/swagger-ui/lib/backbone-min.js @@ -1,23 +1,3 @@ -/*- - * ============LICENSE_START======================================================= - * SDC - * ================================================================================ - * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. - * ================================================================================ - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * ============LICENSE_END========================================================= - */ - // Backbone.js 1.1.2 (function(t,e){if(typeof define==="function"&&define.amd){define(["underscore","jquery","exports"],function(i,r,s){t.Backbone=e(t,s,i,r)})}else if(typeof exports!=="undefined"){var i=require("underscore");e(t,exports,i)}else{t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}})(this,function(t,e,i,r){var s=t.Backbone;var n=[];var a=n.push;var o=n.slice;var h=n.splice;e.VERSION="1.1.2";e.$=r;e.noConflict=function(){t.Backbone=s;return this};e.emulateHTTP=false;e.emulateJSON=false;var u=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);r.push({callback:e,context:i,ctx:i||this});return this},once:function(t,e,r){if(!c(this,"once",t,[e,r])||!e)return this;var s=this;var n=i.once(function(){s.off(t,n);e.apply(this,arguments)});n._callback=e;return this.on(t,n,r)},off:function(t,e,r){var s,n,a,o,h,u,l,f;if(!this._events||!c(this,"off",t,[e,r]))return this;if(!t&&!e&&!r){this._events=void 0;return this}o=t?[t]:i.keys(this._events);for(h=0,u=o.length;h").attr(t);this.setElement(r,false)}else{this.setElement(i.result(this,"el"),false)}}});e.sync=function(t,r,s){var n=T[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:n,dataType:"json"};if(!s.url){a.url=i.result(r,"url")||M()}if(s.data==null&&r&&(t==="create"||t==="update"||t==="patch")){a.contentType="application/json";a.data=JSON.stringify(s.attrs||r.toJSON(s))}if(s.emulateJSON){a.contentType="application/x-www-form-urlencoded";a.data=a.data?{model:a.data}:{}}if(s.emulateHTTP&&(n==="PUT"||n==="DELETE"||n==="PATCH")){a.type="POST";if(s.emulateJSON)a.data._method=n;var o=s.beforeSend;s.beforeSend=function(t){t.setRequestHeader("X-HTTP-Method-Override",n);if(o)return o.apply(this,arguments)}}if(a.type!=="GET"&&!s.emulateJSON){a.processData=false}if(a.type==="PATCH"&&k){a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")}}var h=s.xhr=e.ajax(i.extend(a,s));r.trigger("request",r,h,s);return h};var k=typeof window!=="undefined"&&!!window.ActiveXObject&&!(window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);var T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={});if(t.routes)this.routes=t.routes;this._bindRoutes();this.initialize.apply(this,arguments)};var S=/\((.*?)\)/g;var H=/(\(\?)?:\w+/g;var A=/\*\w+/g;var I=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,u,{initialize:function(){},route:function(t,r,s){if(!i.isRegExp(t))t=this._routeToRegExp(t);if(i.isFunction(r)){s=r;r=""}if(!s)s=this[r];var n=this;e.history.route(t,function(i){var a=n._extractParameters(t,i);n.execute(s,a);n.trigger.apply(n,["route:"+r].concat(a));n.trigger("route",r,a);e.history.trigger("route",n,r,a)});return this},execute:function(t,e){if(t)t.apply(this,e)},navigate:function(t,i){e.history.navigate(t,i);return this},_bindRoutes:function(){if(!this.routes)return;this.routes=i.result(this,"routes");var t,e=i.keys(this.routes);while((t=e.pop())!=null){this.route(t,this.routes[t])}},_routeToRegExp:function(t){t=t.replace(I,"\\$&").replace(S,"(?:$1)?").replace(H,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)");return new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var r=t.exec(e).slice(1);return i.map(r,function(t,e){if(e===r.length-1)return t||null;return t?decodeURIComponent(t):null})}});var N=e.History=function(){this.handlers=[];i.bindAll(this,"checkUrl");if(typeof window!=="undefined"){this.location=window.location;this.history=window.history}};var R=/^[#\/]|\s+$/g;var O=/^\/+|\/+$/g;var P=/msie [\w.]+/;var C=/\/$/;var j=/#.*$/;N.started=false;i.extend(N.prototype,u,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(t==null){if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace(C,"");if(!t.indexOf(i))t=t.slice(i.length)}else{t=this.getHash()}}return t.replace(R,"")},start:function(t){if(N.started)throw new Error("Backbone.history has already been started");N.started=true;this.options=i.extend({root:"/"},this.options,t);this.root=this.options.root;this._wantsHashChange=this.options.hashChange!==false;this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment();var s=document.documentMode;var n=P.exec(navigator.userAgent.toLowerCase())&&(!s||s<=7);this.root=("/"+this.root+"/").replace(O,"/");if(n&&this._wantsHashChange){var a=e.$('