aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-dublin/features/sdc/src/main/resources/open-cli-schema')
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml71
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-dublin.yaml50
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml49
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml44
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-dublin.yaml120
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-dublin.yaml44
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-dublin.yaml76
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-dublin.yaml50
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-dublin.yaml50
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-dublin.yaml50
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml44
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-dublin.yaml44
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml68
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml51
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml54
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml38
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml51
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml49
-rw-r--r--products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml65
19 files changed, 1051 insertions, 17 deletions
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml
new file mode 100644
index 00000000..44a85914
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml
@@ -0,0 +1,71 @@
+# 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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-id
+ description: Onap Service Name
+ type: string
+ short_option: x
+ long_option: service-model-id
+ is_optional: false
+ - name: vf-id
+ description: VF ID
+ type: string
+ short_option: y
+ long_option: vf-id
+ is_optional: true
+ - name: vf-name
+ description: VF ID
+ 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
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-model-id}/resourceInstance
+ method: POST
+ body: '{"name": "${vf-name}", "componentVersion": "${vf-version}", "posY": 248, "posX": 406, "uniqueId": "${service-model-id}-${vf-id}", "originType": "VF", "componentUid": "${vf-id}", "icon": "defaulticon"}'
+ success_codes:
+ - 201
+ result_map:
+ ID: $b{$.uniqueId}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-dublin.yaml
new file mode 100644
index 00000000..40317323
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-dublin.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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-uuid
+ description: Service model UUID (can be found by running service-model-list)
+ type: string
+ long_option: service-model-uuid
+ 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-model-uuid}/distribution-state/approve
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml
new file mode 100644
index 00000000..444a0c58
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml
@@ -0,0 +1,49 @@
+# 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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: service-model-uuid
+ description: Service model UUID (can be found by running service-model-list)
+ type: string
+ long_option: service-model-uuid
+ short_option: b
+ is_optional: false
+ - name: remarks
+ description: checkin 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-model-uuid}/lifecycleState/CHECKIN
+ method: POST
+ body: '{"userRemarks": "${remarks}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml
new file mode 100644
index 00000000..9201e7fa
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.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-checkout
+description: Checkout Service model in SDC
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-uuid
+ description: Service model UUID (can be found from service-model-list)
+ type: string
+ long_option: service-model-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-model-uuid}/lifecycleState/CHECKOUT
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-dublin.yaml
new file mode 100644
index 00000000..ebc0c468
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-dublin.yaml
@@ -0,0 +1,120 @@
+# 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-dublin
+ service: sdc
+ 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
+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}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-dublin.yaml
new file mode 100644
index 00000000..238cd79f
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-dublin.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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-uuid
+ description: Service model UUID (can be found from service-model-list)
+ type: string
+ long_option: service-model-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-model-uuid}/distribution/PROD/activate
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-dublin.yaml
new file mode 100644
index 00000000..193e8645
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-dublin.yaml
@@ -0,0 +1,76 @@
+# 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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+results:
+ direction: landscape
+ attributes:
+ - name: uuid
+ description: UUID
+ 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.[*].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-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-dublin.yaml
new file mode 100644
index 00000000..85a31861
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-dublin.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-accept
+description: Accepts the Service model test in SDC
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-id
+ description: Service model ID
+ type: string
+ long_option: service-model-id
+ short_option: b
+ is_optional: false
+ - name: test-remark
+ description: Remarks when accepting 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-model-id}/lifecycleState/certify
+ method: POST
+ body: '{"userRemarks": "${test-remark}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-dublin.yaml
new file mode 100644
index 00000000..7a1aad14
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-dublin.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-dublin
+ service: sdc
+ author: ONAP HPA Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-id
+ description: Service model ID
+ type: string
+ long_option: service-model-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-model-id}/lifecycleState/failCertification
+ method: POST
+ body: '{"userRemarks": "${test-remark}"}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-dublin.yaml
new file mode 100644
index 00000000..cf3f7c9d
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-dublin.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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-id
+ description: Service model ID
+ type: string
+ long_option: service-model-id
+ short_option: b
+ is_optional: true
+ - name: remark
+ description: Remarks when submitting for testing
+ type: string
+ long_option: remark
+ short_option: r
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-model-id}/lifecycleState/certificationRequest
+ method: POST
+ body: '{"userRemarks": "Requesting certification via CLI"}'
+ success_codes:
+ - 200
+
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml
new file mode 100644
index 00000000..60c3239f
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-id
+ description: Service model ID
+ type: string
+ long_option: service-model-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-model-id}/lifecycleState/startCertification
+ method: POST
+ body: '{}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-dublin.yaml
new file mode 100644
index 00000000..ae9e8356
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-dublin.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-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-uuid
+ description: Service model UUIID (check service-model-list)
+ type: string
+ long_option: service-model-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-model-uuid}/lifecycleState/UNDOCHECKOUT
+ method: POST
+ body: '{"userRemarks": null}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml
new file mode 100644
index 00000000..bd4c38c6
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.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: service2vf-model-list
+description: List the VF in a given service model in SDC
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: service-model-id
+ description: Service model uuid
+ type: string
+ short_option: z
+ long_option: service-model-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
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /sdc2/rest/v1/catalog/services/${service-model-id}
+ method: GET
+ success_codes:
+ - 200
+ result_map:
+ vf-uuid: $b{componentInstances.[*].componentUid}
+ vf-name: $b{componentInstances.[*].componentName}
+ vf-version: $b{componentInstances.[*].componentVersion}
+ vf-customization-uuid: $b{componentInstances.[*].customizationUUID}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml
new file mode 100644
index 00000000..a22a0365
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-dublin.yaml
@@ -0,0 +1,51 @@
+# 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: vlm-delete
+description: Delete License Model (certified vlms cannot be deleted)
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+
+parameters:
+ - name: vendor-name
+ description: vendor name
+ type: string
+ short_option: x
+ long_option: vendor-name
+ is_optional: false
+ - name: vlm-id
+ description: vlm id
+ type: string
+ short_option: y
+ long_option: vlm-id
+ is_optional: false
+
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}
+ method: DELETE
+ body: '{"vendorName": "${vendor-name}", "description": "vendor license model", "iconRef": "icon"}'
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml
new file mode 100644
index 00000000..42c92f37
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-add-artifact-schema-dublin.yaml
@@ -0,0 +1,54 @@
+# 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: vsp-add-artifact
+description: Upload the CSAR/ZIP file to VSP
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: Onap VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+ - name: vsp-file
+ description: CSAR File path
+ type: binary
+ short_option: z
+ long_option: vsp-file
+ is_optional: false
+http:
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate
+ method: POST
+ body: '${vsp-file}'
+ multipart_entity_name: 'upload'
+ headers:
+ Content-type: 'multipart/form-data'
+ Accept: '*/*'
+ USER_ID: "${host-username}"
+ success_codes:
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml
index 84c67820..19c92393 100644
--- a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-create-schema-dublin.yaml
@@ -34,20 +34,6 @@ parameters:
short_option: y
long_option: vsp-description
is_optional: true
- - name: vsp-category
- description: Category of the VSP
- type: string
- long_option: vsp-category
- short_option: z
- is_optional: true
- default_value: resourceNewCategory.generic
- - name: vsp-subcategory
- description: Sub Category of VSP
- type: string
- long_option: vsp-subcategory
- short_option: b
- is_optional: true
- default_value: resourceNewCategory.generic.abstract
- name: vlm-version
description: License version
type: string
@@ -79,6 +65,13 @@ parameters:
long_option: vlm-feature-group-id
short_option: j
is_optional: false
+ - name: onboarding-method
+ description: Method to be used for onboarding (Manual or NetworkPackage)
+ type: string
+ long_option: onboarding-method
+ short_option: o
+ is_optional: false
+
results:
direction: portrait
attributes:
@@ -99,9 +92,20 @@ http:
request:
uri: /onboarding-api/v1.0/vendor-software-products
method: POST
- body: '{"category": "${vsp-category}", "vendorId": "${vlm-id}", "subCategory": "${vsp-subcategory}", "description": "${vsp-description}", "licensingVersion": "${vlm-version}", "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"}, "icon": "icon", "onboardingMethod": "Manual", "vendorName": "${vlm-vendor}", "name": "${vsp-name}"}'
+ body: '{
+ "category": "resourceNewCategory.generic",
+ "vendorId": "${vlm-id}",
+ "subCategory": "resourceNewCategory.generic.abstract",
+ "description": "${vsp-description}",
+ "licensingVersion": "${vlm-version}",
+ "licensingData": {"featureGroups": ["${vlm-feature-group-id}"], "licenseAgreement": "${vlm-agreement-id}"},
+ "icon": "icon",
+ "onboardingMethod": "${onboarding-method}",
+ "vendorName": "${vlm-vendor}",
+ "name": "${vsp-name}"
+ }'
success_codes:
- 200
result_map:
- ID: $b{$.vspId}
- version: $b{$.version.id} \ No newline at end of file
+ ID: $b{$.itemId}
+ version: $b{$.version.id}
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml
new file mode 100644
index 00000000..6cd48e87
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-package-schema-dublin.yaml
@@ -0,0 +1,51 @@
+# 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: vsp-package
+description: Package Vendor Software Product
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action": "Create_Package"}'
+ success_codes:
+ - 201
+ - 200
+ sample_response:
+ body: ''
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml
new file mode 100644
index 00000000..6d46f6fa
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-submit-schema-dublin.yaml
@@ -0,0 +1,49 @@
+# 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: vsp-submit
+description: Submit Vendor Software Product
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/actions
+ method: PUT
+ body: '{"action": "Submit"}'
+ success_codes:
+ - 201
+ - 200
diff --git a/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml
new file mode 100644
index 00000000..41f1fea1
--- /dev/null
+++ b/products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/vsp/vsp-validate-schema-dublin.yaml
@@ -0,0 +1,65 @@
+# 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: vsp-validate
+description: Validate the uploaded Vendor Software Product
+
+info:
+ product: onap-dublin
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vsp-id
+ description: Onap VSP ID
+ type: string
+ short_option: x
+ long_option: vsp-id
+ is_optional: false
+ - name: vsp-version
+ description: VSP version
+ type: string
+ short_option: y
+ long_option: vsp-version
+ is_optional: false
+
+results:
+ direction: portrait
+ attributes:
+ - name: status
+ description: Validation status
+ scope: short
+ type: string
+ - name: errors
+ description: Validation messages
+ scope: short
+ type: json
+
+http:
+ service:
+ name: sdc
+ version: v1.0
+ auth: basic
+ mode: direct
+ request:
+ uri: /onboarding-api/v1.0/vendor-software-products/${vsp-id}/versions/${vsp-version}/orchestration-template-candidate/process
+ method: PUT
+ body: '{}'
+ success_codes:
+ - 201
+ - 200
+ result_map:
+ status: $b{$.status}
+ errors: $b{$.errors}