From 5d6b9deb42b8b39ef953d39f1d4cbe1204e9d8e1 Mon Sep 17 00:00:00 2001 From: Itohan Ukponmwan Date: Thu, 21 Mar 2019 20:27:00 +0000 Subject: SDC service-model commands for onboarding Change-Id: I056f4e0dfd020f1a48995d825c23574eab1f596e Issue-ID: CLI-137 Signed-off-by: Itohan Ukponmwan --- .../service-model-add-vf-schema-dublin.yaml | 71 ++++++++++++ .../service-model-approve-schema-dublin.yaml | 50 +++++++++ .../service-model-checkin-schema-dublin.yaml | 49 +++++++++ .../service-model-checkout-schema-dublin.yaml | 44 ++++++++ .../service-model-create-schema-dublin.yaml | 120 +++++++++++++++++++++ .../service-model-distribute-schema-dublin.yaml | 44 ++++++++ .../service-model-list-schema-dublin.yaml | 76 +++++++++++++ .../service-model-test-accept-schema-dublin.yaml | 50 +++++++++ .../service-model-test-reject-schema-dublin.yaml | 50 +++++++++ .../service-model-test-request-schema-dublin.yaml | 50 +++++++++ .../service-model-test-start-schema-dublin.yaml | 44 ++++++++ .../service-model-undocheckout-schema-dublin.yaml | 44 ++++++++ .../service2vf-model-list-schema-dublin.yaml | 68 ++++++++++++ 13 files changed, 760 insertions(+) create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-add-vf-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-approve-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkin-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-checkout-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-distribute-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-list-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-accept-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-reject-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-request-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-test-start-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-undocheckout-schema-dublin.yaml create mode 100644 products/onap-dublin/features/sdc/src/main/resources/open-cli-schema/service-model/service2vf-model-list-schema-dublin.yaml (limited to 'products/onap-dublin/features/sdc/src/main/resources/open-cli-schema') 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} -- cgit 1.2.3-korg