summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhaoliping123 <zhaoliping@chinamobile.com>2020-03-12 10:26:56 +0800
committerzhaoliping123 <zhaoliping@chinamobile.com>2020-03-12 10:28:52 +0800
commitfe3b9a8559642a757b971ead4763c22e74844c2d (patch)
tree3fcb0e5b96cc0e2beb320ffba2c507356907ee02
parent8d3d545fa55e3485317bfb5b93b484a77dc2dd38 (diff)
update sdc service-model-add-artifact
Issue-ID: CLI-258 Change-Id: I7443a94c1852ee564b32200e61a26f630b01fea1 Signed-off-by: zhaoliping123 <zhaoliping@chinamobile.com>
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-dublin.yaml16
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml16
2 files changed, 30 insertions, 2 deletions
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 0a81b0f1..5ef857f9 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
@@ -48,6 +48,20 @@ 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: false
+ - name: artifact-group-type
+ description: Upload Artifact Group Type
+ type: string
+ long_option: artifact-group-type
+ short_option: g
+ default_value: INFORMATIONAL
+ is_optional: true
- name: user-id
description: Designer user id
type: string
@@ -67,6 +81,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":"INFORMATIONAL", artifactChecksum="$s{md5:artifact}"}'
+ body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-label}","artifactGroupType":"${artifact-group-type}", artifactChecksum="$s{md5:artifact}"}'
success_codes:
- 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml
index 5bd2fad6..f3daaf60 100644
--- a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml
@@ -48,6 +48,20 @@ 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: false
+ - name: artifact-group-type
+ description: Upload Artifact Group Type
+ type: string
+ long_option: artifact-group-type
+ short_option: g
+ default_value: INFORMATIONAL
+ is_optional: true
- name: user-id
description: Designer user id
type: string
@@ -67,6 +81,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":"INFORMATIONAL", artifactChecksum="$s{md5:artifact}"}'
+ body: '{"payloadData":"${artifact}","artifactDisplayName":"${artifact-name}","artifactType":"OTHER","description":"${remarks}","artifactName":"${artifact-name}", "artifactLabel":"${artifact-label}","artifactGroupType":"${artifact-group-type}", artifactChecksum="$s{md5:artifact}"}'
success_codes:
- 200