Change-Id: I00d8f950dd067e78ee61588eb75cbbddbd71f928
Issue-ID: MODELING-188
Signed-off-by: dyh <dengyuanhong@chinamobile.com>
"invariantUUID": "63eaec39-ffbe-411c-a838-448f2c73f7eb",
"name": "underlayvpn",
"version": "2.0",
"invariantUUID": "63eaec39-ffbe-411c-a838-448f2c73f7eb",
"name": "underlayvpn",
"version": "2.0",
- "toscaModelURL": "/sdc/v1/genericparser/resources/c94490a0-f7ef-48be-b3f8-8d8662a37236/toscaModel",
+ "toscaModelURL": "/sdc/v1/catalog/resources/c94490a0-f7ef-48be-b3f8-8d8662a37236/toscaModel",
"category": "Volte",
"subCategory": "VolteVF",
"resourceType": "VF",
"category": "Volte",
"subCategory": "VolteVF",
"resourceType": "VF",
def get_artifacts(asset_type):
def get_artifacts(asset_type):
- resource = "/sdc/v1/genericparser/{assetType}"
+ resource = "/sdc/v1/catalog/{assetType}"
resource = resource.format(assetType=asset_type)
ret = call_sdc(resource, "GET")
if ret[0] != 0:
resource = resource.format(assetType=asset_type)
ret = call_sdc(resource, "GET")
if ret[0] != 0:
def delete_artifact(asset_type, asset_id, artifact_id):
def delete_artifact(asset_type, asset_id, artifact_id):
- resource = "/sdc/v1/genericparser/{assetType}/{uuid}/artifacts/{artifactUUID}"
+ resource = "/sdc/v1/catalog/{assetType}/{uuid}/artifacts/{artifactUUID}"
resource = resource.format(assetType=asset_type, uuid=asset_id, artifactUUID=artifact_id)
ret = call_sdc(resource, "DELETE")
if ret[0] != 0:
resource = resource.format(assetType=asset_type, uuid=asset_id, artifactUUID=artifact_id)
ret = call_sdc(resource, "DELETE")
if ret[0] != 0: