aboutsummaryrefslogtreecommitdiffstats
path: root/onap-client/onap_client/sdc/catalog/service_catalog.py
diff options
context:
space:
mode:
authorstark, steven <steven.stark@att.com>2021-05-03 15:23:46 -0700
committerstark, steven <steven.stark@att.com>2021-05-03 15:23:46 -0700
commit7530353e6ad1839f74af4c361b5215d68d78e0c7 (patch)
tree4ced6892125c356afab335b59cd33928fc78b242 /onap-client/onap_client/sdc/catalog/service_catalog.py
parent057a991e03dcee33caa4e0d6be758aebaced2df0 (diff)
[VVP] vsp creates for first time user
If the user has never used the SDC dashboard, the request to retrieve LM details fails. Issue-ID: VVP-535 Signed-off-by: stark, steven <steven.stark@att.com> Change-Id: I55d0c02e6de4c5fdd1a0f5cc20d9c2cd706f855b
Diffstat (limited to 'onap-client/onap_client/sdc/catalog/service_catalog.py')
-rw-r--r--onap-client/onap_client/sdc/catalog/service_catalog.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/onap-client/onap_client/sdc/catalog/service_catalog.py b/onap-client/onap_client/sdc/catalog/service_catalog.py
index 32749ff..c49b40a 100644
--- a/onap-client/onap_client/sdc/catalog/service_catalog.py
+++ b/onap-client/onap_client/sdc/catalog/service_catalog.py
@@ -130,6 +130,24 @@ class ServiceCatalog(SDCClient):
"return_data": {"catalog_resource_instance_id": ("uniqueId",)},
"auth": self.auth,
},
+ "UNDO_CHECKOUT": {
+ "verb": "POST",
+ "description": "Undo a checked-out service in SDC.",
+ "uri": partial(
+ "{endpoint}{service_path}/{catalog_service_id}/lifecycleState/UNDOCHECKOUT".format,
+ endpoint=self.config.sdc.SDC_BE_ENDPOINT,
+ service_path=self.config.sdc.SDC_CATALOG_SERVICES_PATH,
+ ),
+ "uri-parameters": ["catalog_service_id"],
+ "success_code": 200,
+ "headers": {
+ "Accept": "application/json",
+ "Content-Type": "application/json",
+ "USER_ID": self.sdc_designer_user_id,
+ "X-FromAppId": self.config.application_id,
+ },
+ "auth": self.auth,
+ },
"DELETE_RESOURCE_FROM_SERVICE": {
"verb": "DELETE",
"description": "Deletes a resource from a service.",