aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model')
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml72
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.yaml81
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml45
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml67
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml58
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml125
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml44
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml80
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml73
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml68
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml50
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml44
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml44
-rw-r--r--products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml73
17 files changed, 1074 insertions, 0 deletions
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml
new file mode 100644
index 00000000..74e75c7a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/get-resource-module-name.yaml
@@ -0,0 +1,50 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: get-resource-module-name
+description: Get resource module name
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: vf-model-name
+ description: name of vf model in service model
+ type: string
+ scope: short
+ - name: resource-module-name
+ description: system name of vf-model
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vf-model-name: $b{resources.[*].name}
+ resource-module-name: $b{resources.[*].systemName}
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
new file mode 100644
index 00000000..5bd2fad6
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-artifact-schema-elalto.yaml
@@ -0,0 +1,72 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-add-artifact
+description: Add a artifact to a Service model
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service Unique Id
+ type: string
+ long_option: service-id
+ short_option: x
+ is_optional: false
+ - name: remarks
+ description: certification remarks
+ type: string
+ long_option: remarks
+ short_option: y
+ default_value: Uploaded from ONAP CLI
+ is_optional: true
+ - name: artifact
+ description: NS CSAR file
+ type: byte
+ long_option: artifact
+ short_option: z
+ is_optional: false
+ - name: artifact-name
+ description: NS CSAR name
+ type: string
+ long_option: artifact-name
+ short_option: b
+ is_optional: false
+ - name: user-id
+ description: Designer user id
+ type: string
+ long_option: user-id
+ short_option: e
+ default_value: cs0008
+ is_optional: true
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/artifacts
+ method: POST
+ 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}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.yaml
new file mode 100644
index 00000000..f7634e53
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-elalto.yaml
@@ -0,0 +1,81 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-add-vf
+description: Helps to add VF into service models in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Onap Service Name
+ type: string
+ short_option: x
+ long_option: service-id
+ is_optional: false
+ - name: vf-id
+ description: VF Unique ID
+ type: string
+ short_option: y
+ long_option: vf-id
+ is_optional: true
+ - name: vf-name
+ description: VF Name
+ type: string
+ short_option: z
+ long_option: vf-name
+ is_optional: true
+ - name: vf-version
+ description: VF version
+ type: string
+ long_option: vf-version
+ short_option: b
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Service ID
+ scope: short
+ type: string
+ - name: uuid
+ description: Service UUID
+ scope: short
+ type: string
+ - name: inputs
+ description: VNF Input ids
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance
+ method: POST
+ body: '{"name": "${vf-name}", "componentVersion": "${vf-version}", "posY": 248, "posX": 406, "uniqueId": "${service-id}-${vf-id}", "originType": "VF", "componentUid": "${vf-id}", "icon": "defaulticon"}'
+ success_codes:
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.componentUid}
+ inputs: $b{$.inputs.[*].uniqueId} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml
new file mode 100644
index 00000000..ce679293
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-elalto.yaml
@@ -0,0 +1,50 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-approve
+description: Approves the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UniqueId
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: approval remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/distribution-state/approve
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml
new file mode 100644
index 00000000..a90a649f
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-archive-schema-elalto.yaml
@@ -0,0 +1,45 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-archive
+description: Archive the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UniqueId
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/archive
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ - 417 \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml
new file mode 100644
index 00000000..cdb80d9d
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-elalto.yaml
@@ -0,0 +1,67 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-checkin
+description: Checkin Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: checkin remarks
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKIN
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.unid} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml
new file mode 100644
index 00000000..a2148ec2
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-elalto.yaml
@@ -0,0 +1,58 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-checkout
+description: Checkout Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/CHECKOUT
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml
new file mode 100644
index 00000000..9e59252a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-elalto.yaml
@@ -0,0 +1,125 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-create
+description: Create Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-name
+ description: Onap Service Name
+ type: string
+ short_option: x
+ long_option: service-name
+ is_optional: false
+ - name: description
+ description: Description for Service
+ type: string
+ short_option: y
+ long_option: description
+ is_optional: true
+ - name: project-code
+ description: Project code
+ type: string
+ long_option: project-code
+ short_option: z
+ is_optional: true
+ - name: category
+ description: Service category (options are "network l4+","network l1-3","e2e service","mobility","network service","voip call control")
+ type: string
+ short_option: b
+ long_option: category
+ is_optional: true
+ default_value: network l1-3
+ - name: category-display-name
+ description: Service category display name (Options are "Network L4+","Network L1-3","E2E Service","Network Service","Mobility","VoIP Call Control")
+ type: string
+ short_option: c
+ long_option: category-display-name
+ is_optional: true
+ default_value: Network L1-3
+ - name: icon-id
+ description: Service Icon id (options are "network_l_4","network_l_1-3"[use this icon for "Network L1-3","E2E Service","Network Service"],"mobility","call_controll")
+ type: string
+ short_option: e
+ long_option: icon-id
+ default_value: defaulticon
+ is_optional: true
+
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: Service ID
+ scope: short
+ type: string
+ - name: uuid
+ description: Service UUID
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services
+ method: POST
+ body: '{
+ "artifacts":{},
+ "toscaArtifacts":{},
+ "contactId":"${host-username}",
+ "categories":[{
+ "name":"${category-display-name}",
+ "normalizedName":"${category}",
+ "uniqueId":"serviceNewCategory.${category}",
+ "icons":["${icon-id}"],
+ "subcategories":null,
+ "version":null,
+ "ownerId":null,
+ "empty":false,
+ "type":null }],
+ "description":"${description}",
+ "icon":"defaulticon",
+ "componentInstancesProperties":{},
+ "componentInstancesAttributes":{},
+ "name":"${service-name}",
+ "tags":["${service-name}"],
+ "capabilities":{},
+ "requirements":{},
+ "deploymentArtifacts":{},
+ "componentType":"SERVICE",
+ "projectCode":"${project-code}",
+ "componentInstances":[],
+ "properties":[],
+ "attributes":[],
+ "forwardingPaths":{},
+ "ecompGeneratedNaming":true,
+ "serviceApiArtifacts":{},
+ "instantiationType":"A-la-carte",
+ "environmentContext":"General_Revenue-Bearing"
+ }'
+ success_codes:
+ - 200
+ - 201
+ result_map:
+ id: $b{$.uniqueId}
+ uuid: $b{$.uuid}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml
new file mode 100644
index 00000000..74431223
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-elalto.yaml
@@ -0,0 +1,44 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-distribute
+description: Distributes the Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model UUID (can be found from service-model-list)
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/distribution/PROD/activate
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml
new file mode 100644
index 00000000..55fae0f5
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-elalto.yaml
@@ -0,0 +1,80 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-list
+description: List the service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: id
+ description: uniqueId
+ type: string
+ scope: short
+ - name: invariant-uuid
+ description: Invariant UUID
+ type: string
+ scope: short
+ - name: name
+ description: Name
+ type: string
+ scope: short
+ - name: version
+ description: version
+ type: string
+ scope: short
+ - name: status
+ description: status
+ type: string
+ scope: short
+ - name: distribution-status
+ description: status
+ type: string
+ scope: short
+ - name: description
+ description: description
+ type: string
+ scope: long
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/followed
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ uuid: $b{services.[*].uuid}
+ id: $b{services.[*].uniqueId}
+ invariant-uuid: $b{services.[*].invariantUUID}
+ version: $b{services.[*].version}
+ name: $b{services.[*].name}
+ status: $b{services.[*].lifecycleState}
+ description: $b{services.[*].description}
+ distribution-status: $b{services.[*].distributionStatus}
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml
new file mode 100644
index 00000000..33cd040a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-set-property.yaml
@@ -0,0 +1,73 @@
+# Copyright 2019 Huawei Technologies Co., Ltd.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-set-property
+description: Set property to a service model
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: service UniqueId
+ type: string
+ long_option: service-id
+ short_option: x
+ is_optional: false
+ - name: vf-resource-id
+ description: resource id provided by service ns_id.vf_id.vf_name
+ type: string
+ long_option: vf-resource-id
+ short_option: y
+ is_optional: false
+ - name: vf-id
+ description: resource id
+ type: string
+ long_option: vf-id
+ short_option: z
+ is_optional: false
+ - name: property-name
+ description: property name
+ type: string
+ long_option: property-name
+ short_option: b
+ is_optional: false
+ - name: property-value
+ description: property value
+ type: string
+ long_option: property-value
+ short_option: r
+ is_optional: false
+ - name: input-uuid
+ description: VF Model Input uuid
+ type: string
+ long_option: input-uuid
+ short_option: R
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/resourceInstance/${vf-resource-id}/inputs
+ method: POST
+ body: '[{"constraints":[],"definition":false,"name":"${property-name}","parentUniqueId":"${input-uuid}","password":false,"required":false,"schema":{"property":{}},"toscaPresentation":{"ownerId":"${input-uuid}"},"type":"string","uniqueId":"${input-uuid}.${property-name}","value":"${property-value}"}]'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml
new file mode 100644
index 00000000..0f5d03a3
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-elalto.yaml
@@ -0,0 +1,68 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-accept
+description: Accepts the Service model test in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: Remarks when accepting test
+ type: string
+ long_option: remarks
+ short_option: r
+ is_optional: false
+results:
+ direction: portrait
+ attributes:
+ - name: id
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: uuid
+ description: NS checked out version unique ID
+ scope: short
+ type: string
+ - name: version
+ description: VF version
+ scope: short
+ type: string
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/certify
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+ result_map:
+ id: $b{$.uniqueId}
+ version: $b{$.version}
+ uuid: $b{$.unid} \ No newline at end of file
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml
new file mode 100644
index 00000000..eba54b21
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-elalto.yaml
@@ -0,0 +1,50 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-reject
+description: Rejects the Service model test in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: false
+ - name: test-remark
+ description: Remarks when rejecting test
+ type: string
+ long_option: test-remark
+ short_option: r
+ is_optional: false
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/failCertification
+ method: POST
+ body: '{"userRemarks": "${test-remark}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml
new file mode 100644
index 00000000..d3dc707e
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-elalto.yaml
@@ -0,0 +1,50 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-request
+description: Request the certification of Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+ - name: remarks
+ description: Remarks when submitting for testing
+ type: string
+ long_option: remarks
+ short_option: r
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/certificationRequest
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
+
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml
new file mode 100644
index 00000000..9c12957a
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-elalto.yaml
@@ -0,0 +1,44 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-test-start
+description: Starts the testing of a Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model ID
+ type: string
+ long_option: service-id
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}/lifecycleState/startCertification
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml
new file mode 100644
index 00000000..f4df3196
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-elalto.yaml
@@ -0,0 +1,44 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service-model-undocheckout
+description: Undo Checkout of Service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-uuid
+ description: Service model UUIID (check service-model-list)
+ type: string
+ long_option: service-uuid
+ short_option: b
+ is_optional: true
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-uuid}/lifecycleState/UNDOCHECKOUT
+ method: POST
+ body: '{"userRemarks": null}'
+ success_codes:
+ - 200
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml
new file mode 100644
index 00000000..14d44529
--- /dev/null
+++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-elalto.yaml
@@ -0,0 +1,73 @@
+# Copyright © Intel Corporation 2019
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+open_cli_schema_version: 1.0
+name: service2vf-model-list
+description: List the VF in a given service model in SDC
+
+info:
+ product: onap-elalto
+ service: sdc.catalog
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-id
+ description: Service model uuid
+ type: string
+ short_option: z
+ long_option: service-id
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: vf-uuid
+ description: UUID
+ type: string
+ scope: short
+ - name: vf-name
+ description: name
+ type: string
+ scope: short
+ - name: vf-customization-uuid
+ description: customization UUID
+ type: string
+ scope: short
+ - name: vf-version
+ description: version
+ type: string
+ scope: short
+ - name: vf-id
+ description: customization UUID
+ type: string
+ scope: short
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-id}
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vf-id: $b{componentInstances.[*].uniqueId}
+ vf-uuid: $b{componentInstances.[*].componentUid}
+ vf-name: $b{componentInstances.[*].componentName}
+ vf-version: $b{componentInstances.[*].componentVersion}
+ vf-customization-uuid: $b{componentInstances.[*].customizationUUID}