diff options
Diffstat (limited to 'products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf')
7 files changed, 485 insertions, 0 deletions
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-add-artifact-schema-elalto.yaml new file mode 100644 index 00000000..cbcc32ff --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-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: vf-model-add-artifact +description: Add a artifact to a Virtual function + +info: + product: onap-elalto + service: sdc.catalog + author: ONAP HPA Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF UniqueId + type: string + long_option: vf-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: VNF CSAR file + type: byte + long_option: artifact + short_option: z + is_optional: false + - name: artifact-name + description: VNF 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/resources/${vf-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":"DEPLOYMENT", artifactChecksum="$s{md5:artifact}"}' + success_codes: + - 200 diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-archive-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-archive-schema-elalto.yaml new file mode 100644 index 00000000..2fc0db3e --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-archive-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: vf-model-archive +description: Archive VF model in SDC + +info: + product: onap-elalto + service: sdc.catalog + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vf-id + description: VF model ID + type: string + long_option: vf-id + short_option: b + is_optional: false + +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/resources/${vf-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/vf/vf-model-certify-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-elalto.yaml new file mode 100644 index 00000000..b7ac626f --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-certify-schema-elalto.yaml @@ -0,0 +1,69 @@ +# 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: vf-model-certify +description: Certify a Virtual function + +info: + product: onap-elalto + service: sdc.catalog + author: ONAP HPA Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF UniqueId + type: string + long_option: vf-id + short_option: b + is_optional: false + - name: remarks + description: certification remarks + type: string + long_option: remarks + short_option: r + is_optional: true + +results: + direction: portrait + attributes: + - name: id + description: VF version unique ID + scope: short + type: string + - name: uuid + description: VF UUID + scope: short + type: uuid + - 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/resources/${vf-id}/lifecycleState/certify + method: POST + body: '{"userRemarks":"${remarks}"}' + success_codes: + - 200 + result_map: + id: $b{$.uniqueId} + uuid: $b{$.uuid} + version: $b{$.version} diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-schema-elalto.yaml new file mode 100644 index 00000000..a2db03f2 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkin-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: vf-model-checkin +description: Checkin VF model in SDC + +info: + product: onap-elalto + service: sdc.catalog + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vf-id + description: VF model ID + type: string + long_option: vf-id + short_option: b + is_optional: false + - name: remarks + description: checkin remarks + type: string + long_option: remarks + short_option: r + default_value: Checked in by ONAP CLI + is_optional: false +results: + direction: portrait + attributes: + - name: id + description: VF version unique ID + scope: short + type: string + - name: version + description: VF version + scope: short + type: string + - name: uuid + description: VF uuid + scope: short + type: string +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/resources/${vf-id}/lifecycleState/CHECKIN + method: POST + body: '{"userRemarks": "${remarks}"}' + success_codes: + - 200 + result_map: + id: $b{$.uniqueId} + version: $b{$.version} + uuid: $b{$.uuid}
\ No newline at end of file diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-elalto.yaml new file mode 100644 index 00000000..4ce33529 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-checkout-schema-elalto.yaml @@ -0,0 +1,59 @@ +# 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: vf-model-checkout +description: Checkout VF model in SDC + +info: + product: onap-elalto + service: sdc.catalog + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vf-id + description: VF model ID + type: string + long_option: vf-id + short_option: b + is_optional: false + +results: + direction: portrait + attributes: + - name: id + description: VF 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/resources/${vf-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/vf/vf-model-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-elalto.yaml new file mode 100644 index 00000000..9d1b3e91 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-create-schema-elalto.yaml @@ -0,0 +1,89 @@ +# 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: vf-model-create +description: Create Virtual function from Vendor Software Product + +info: + product: onap-elalto + service: sdc.catalog + author: ONAP HPA Team onap-discuss@lists.onap.org + + +parameters: + - name: name + description: Onap VF Name + type: string + short_option: x + long_option: name + is_optional: false + - name: description + description: Description for VF + type: string + short_option: y + long_option: description + is_optional: true + - name: vendor-name + description: Vendor name + type: string + long_option: vendor-name + short_option: z + is_optional: false + - name: vsp-id + description: VSP ID + type: string + long_option: vsp-id + short_option: b + is_optional: true + - name: vsp-version + description: VSP version + type: string + long_option: vsp-version + short_option: g + is_optional: true + +results: + direction: portrait + attributes: + - name: id + description: VF ID + scope: short + type: string + - name: uuid + description: VF 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/resources + method: POST + body: '{"contactId": "${host-username}", "vendorRelease": "1.0", "requirements": {}, "artifacts": {}, "capabilities": {}, "componentInstancesProperties": {}, "deploymentArtifacts": {}, "icon": "defaulticon", "vendorName": "${vendor-name}", "description": "${description}", "tags": ["CLI", "${name}"], "properties": [], "categories": [{"subcategories": [{"normalizedName": "abstract", "name": "Abstract", "uniqueId": "resourceNewCategory.generic.abstract", "icons": ["database"]}], "normalizedName": "generic", "name": "Generic", "uniqueId": "resourceNewCategory.generic"}], "name": "${name}", "toscaArtifacts": {}, "csarUUID": "${vsp-id}", "resourceType": "VF", "csarVersion": "${vsp-version}", "componentType": "RESOURCE", "componentInstancesAttributes": {}, "attributes": [], "componentInstances": []}' + context: + remove_empty_node: true + success_codes: + - 201 + result_map: + id: $b{$.uniqueId} + uuid: $b{$.uuid} + inputs: $b{$.inputs.[*].uniqueId}
\ No newline at end of file diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-elalto.yaml new file mode 100644 index 00000000..e05b1a30 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vf/vf-model-list-schema-elalto.yaml @@ -0,0 +1,84 @@ +# 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: vf-model-list +description: List the VF resource 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: id + 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: description + description: description + type: string + scope: long + - name: vsp-uuid + description: VSP uuid + type: string + scope: long + - name: vsp-version + description: VSP version + 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{resources.[*].uuid} + id: $b{resources.[*].uniqueId} + invariant-uuid: $b{resources.[*].invariantUUID} + version: $b{resources.[*].version} + name: $b{resources.[*].name} + status: $b{resources.[*].lifecycleState} + description: $b{resources.[*].description} + vsp-uuid: $b{resources.[*].csarUUID} + vsp-version: $b{resources.[*].csarVersion} |