aboutsummaryrefslogtreecommitdiffstats
path: root/onap-client/onap_client/sdc/catalog
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2020-05-21 14:36:33 -0700
committerstark, steven <steven.stark@att.com>2020-05-21 14:42:25 -0700
commitae7a1f690808666d0b6b8b79b739e3a865dd93b1 (patch)
tree88b381417f9e4c75fde07622741fe852aeee1984 /onap-client/onap_client/sdc/catalog
parentd481ad9918d383c82335e52db4a360964194ef5d (diff)
[VVP] adding VSP owner and VF description
Adding optional mechanism to override the VSP owner Addition optional field for the VF descriptino Issue-ID: VVP-418 Signed-off-by: stark, steven <steven.stark@att.com> Change-Id: Ib297a22a75a138881647fc2b8e91149c9e7a686c
Diffstat (limited to 'onap-client/onap_client/sdc/catalog')
-rw-r--r--onap-client/onap_client/sdc/catalog/vnf_catalog.py1
-rw-r--r--onap-client/onap_client/sdc/catalog/vsp_catalog.py24
2 files changed, 25 insertions, 0 deletions
diff --git a/onap-client/onap_client/sdc/catalog/vnf_catalog.py b/onap-client/onap_client/sdc/catalog/vnf_catalog.py
index 6cf2207..2f07fbe 100644
--- a/onap-client/onap_client/sdc/catalog/vnf_catalog.py
+++ b/onap-client/onap_client/sdc/catalog/vnf_catalog.py
@@ -74,6 +74,7 @@ CATALOG_RESOURCES = {
"resource_type",
"categories",
"contact_id",
+ "description",
],
"success_code": 201,
"headers": {
diff --git a/onap-client/onap_client/sdc/catalog/vsp_catalog.py b/onap-client/onap_client/sdc/catalog/vsp_catalog.py
index 7070032..a0da6e5 100644
--- a/onap-client/onap_client/sdc/catalog/vsp_catalog.py
+++ b/onap-client/onap_client/sdc/catalog/vsp_catalog.py
@@ -332,4 +332,28 @@ CATALOG_RESOURCES = {
sdc_properties.GLOBAL_SDC_PASSWORD,
),
},
+ "MODIFY_VSP_OWNER": {
+ "verb": "PUT",
+ "description": "Changes the owner of a VSP",
+ "uri": partial(
+ "{endpoint}{service_path}/{software_product_id}/permissions/Owner".format,
+ endpoint=sdc_properties.SDC_BE_ONBOARD_ENDPOINT,
+ service_path=sdc_properties.SDC_VENDOR_ITEMS_PATH,
+ ),
+ "uri-parameters": ["software_product_id"],
+ "payload": "{}/add_vsp_contributer.jinja".format(PAYLOADS_DIR),
+ "payload-parameters": ["user_id"],
+ "success_code": 200,
+ "headers": {
+ "Accept": "application/json",
+ "Content-Type": "application/json",
+ "USER_ID": sdc_properties.SDC_DESIGNER_USER_ID,
+ "X-TransactionId": str(uuid.uuid4()),
+ "X-FromAppId": application_id,
+ },
+ "auth": (
+ sdc_properties.GLOBAL_SDC_USERNAME,
+ sdc_properties.GLOBAL_SDC_PASSWORD,
+ ),
+ },
}