From 5d5c63058d95c4044a9d73d1edb1648f75de839f Mon Sep 17 00:00:00 2001 From: zhaoliping123 Date: Mon, 20 Apr 2020 20:18:58 +0800 Subject: update vf-model-add-artifact and service-model-add-artifact Issue-ID: CLI-264 Change-Id: Ieeaa81b3e02016d5f889f3472b904a2e809c3106 Signed-off-by: zhaoliping123 --- .../service-model/service-model-add-artifact-schema-dublin.yaml | 2 +- .../open-cli-schema/vf/vf-model-add-artifact-schema-dublin.yaml | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'products/onap-dublin/features') diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-dublin.yaml index 5ef857f9..27d324ae 100644 --- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-dublin.yaml +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-dublin.yaml @@ -54,7 +54,7 @@ parameters: long_option: artifact-label short_option: l default_value: artifactLabel - is_optional: false + is_optional: true - name: artifact-group-type description: Upload Artifact Group Type type: string diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-dublin.yaml index 5eb0c8ca..454a730d 100644 --- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-dublin.yaml +++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-dublin.yaml @@ -48,6 +48,13 @@ parameters: long_option: artifact-name short_option: b is_optional: false + - name: artifact-label + description: Artifact Label + type: string + long_option: artifact-label + short_option: l + default_value: artifactLabel + is_optional: true - name: user-id description: Designer user id type: string @@ -67,6 +74,6 @@ http: headers: Content-MD5: $s{md5:__body__} USER_ID: ${user-id} - body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-name}","artifactGroupType":"DEPLOYMENT", artifactChecksum="$s{md5:artifact}"}' + body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-label}","artifactGroupType":"DEPLOYMENT", artifactChecksum="$s{md5:artifact}"}' success_codes: - 200 -- cgit 1.2.3-korg