diff options
author | 2019-09-12 23:14:58 +0000 | |
---|---|---|
committer | 2019-09-13 00:44:50 +0000 | |
commit | 972f3d52ba96f1b4a2630fdea963855550feb565 (patch) | |
tree | 085113a6d64ca89106c6dbaee12ef290e0409f4a /products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm | |
parent | 97830fdd6e1b596219f8759716c75776ba10121f (diff) |
Added feature commands not added from dublin
- Added commands that were not added from dublin
- Removed extra info parameter from cloud-create command
Signed-off-by: Itohan Ukponmwan <itohan.ukponmwan@intel.com>
Issue-ID: CLI-224
Change-Id: I559ab38dbc6f23ad7a2d38faae77192c0b98ed44
Diffstat (limited to 'products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm')
9 files changed, 563 insertions, 0 deletions
diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml new file mode 100644 index 00000000..5276e521 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-elalto.yaml @@ -0,0 +1,70 @@ +# 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-aggreement-create +description: Create license aggreement + +info: + product: onap-elalto + service: sdc.onboarding + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: name + description: aggreement name + type: string + short_option: x + long_option: name + is_optional: false + - name: vlm-id + description: License Model ID + type: string + short_option: y + long_option: vlm-id + is_optional: false + - name: vlm-version + description: License Model version + type: string + short_option: e + long_option: vlm-version + is_optional: false + - name: vlm-feature-group-id + description: VLM feature group + type: string + short_option: g + long_option: vlm-feature-group-id + is_optional: false + +results: + direction: portrait + attributes: + - name: id + description: aggreement ID + scope: short + type: string +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-agreements + method: POST + body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}' + success_codes: + - 200 + result_map: + id: $b{$.value} diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-archive-schema-elalto.yaml new file mode 100644 index 00000000..cfe95415 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-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: vlm-archive +description: Archive Vendor License Model + +info: + product: onap-elalto + service: sdc.onboarding + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: vlm-id + description: Onap VLM ID + type: string + short_option: x + long_option: vlm-id + is_optional: false + +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/items/${vlm-id}/actions + method: PUT + body: '{"action": "ARCHIVE"}' + success_codes: + - 201 + - 200 + - 417
\ No newline at end of file diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml new file mode 100644 index 00000000..9b1ef037 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-create-schema-elalto.yaml @@ -0,0 +1,63 @@ +# 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-create +description: Create License Model + +info: + product: onap-elalto + service: sdc.onboarding + 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: description + description: Description for License Model + type: string + short_option: y + long_option: description + is_optional: true +results: + direction: portrait + attributes: + - name: id + description: License Model ID + scope: short + type: uuid + - name: version + description: License Model version + scope: short + type: uuid +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-license-models + method: POST + body: '{"vendorName": "${vendor-name}", "description": "${description}", "iconRef": "icon"}' + success_codes: + - 200 + result_map: + id: $b{$.itemId} + version: $b{$.version.id}
\ No newline at end of file diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.yaml new file mode 100644 index 00000000..064af3bb --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-delete-schema-elalto.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-elalto + service: sdc.onboarding + 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-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml new file mode 100644 index 00000000..31172627 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-entitlement-pool-create-schema-elalto.yaml @@ -0,0 +1,83 @@ +# 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-entitlement-pool-create +description: Create Entitlement Pool + +info: + product: onap-elalto + service: sdc.onboarding + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: name + description: Entitlement Pool name + type: string + short_option: x + long_option: name + is_optional: false + - name: vlm-id + description: License Model ID + type: string + short_option: y + long_option: vlm-id + is_optional: false + - name: vlm-version + description: License Model version + type: string + short_option: e + long_option: vlm-version + is_optional: false + - name: manufacture-reference-number + description: Manufature Reference Number + type: string + short_option: k + long_option: manufacture-reference-number + is_optional: false + - name: start-date + description: License start date (MM/DD/YYYY) + type: string + short_option: l + long_option: start-date + is_optional: false + - name: expiry-date + description: License end date (MM/DD/YYYY) + type: string + short_option: g + long_option: expiry-date + is_optional: false + +results: + direction: portrait + attributes: + - name: id + description: Entitlement Pool ID + scope: short + type: string +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/entitlement-pools + method: POST + body: '{"name":"${name}","time":{"choice":"","other":""},"startDate":"${start-date}","expiryDate":"${expiry-date}","manufacturerReferenceNumber":"${manufacture-reference-number}"}' + success_codes: + - 200 + result_map: + id: $b{$.value} diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml new file mode 100644 index 00000000..04c7ac3a --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-feature-group-create-schema-elalto.yaml @@ -0,0 +1,83 @@ +# 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-feature-group-create +description: Create feature group Pool + +info: + product: onap-elalto + service: sdc.onboarding + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: name + description: Feature group name + type: string + short_option: x + long_option: name + is_optional: false + - name: vlm-id + description: License Model ID + type: string + short_option: y + long_option: vlm-id + is_optional: false + - name: vlm-version + description: License Model version + type: string + short_option: e + long_option: vlm-version + is_optional: false + - name: vlm-key-group-id + description: VLM keygroup + type: string + short_option: g + long_option: vlm-key-group-id + is_optional: false + - name: vlm-entitle-pool-id + description: VLM Entitlement pool + type: string + short_option: b + long_option: vlm-entitle-pool-id + is_optional: false + - name: part-number + description: Part number + type: string + short_option: c + long_option: part-number + is_optional: false + +results: + direction: portrait + attributes: + - name: id + description: Feature group ID + scope: short + type: string +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/feature-groups + method: POST + body: '{"name": "${name}", "addedLicenseKeyGroupsIds": ["${vlm-key-group-id}"], "addedEntitlementPoolsIds": ["${vlm-entitle-pool-id}"], "partNumber": "${part-number}"}' + success_codes: + - 200 + result_map: + id: $b{$.value} diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml new file mode 100644 index 00000000..5f266ac4 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-key-group-create-schema-elalto.yaml @@ -0,0 +1,72 @@ +# 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-key-group-create +description: Create License Key Group + +info: + product: onap-elalto + service: sdc.onboarding + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vlm-id + description: License Model Id + type: string + short_option: c + long_option: vlm-id + is_optional: false + - name: vlm-version + description: License Model version + type: string + short_option: e + long_option: vlm-version + is_optional: false + - name: name + description: name + type: string + short_option: x + long_option: name + is_optional: false + - name: type + description: type of group (Universal, unique, one-time) + type: string + short_option: y + long_option: type + is_optional: false + default_value: Universal + +results: + direction: portrait + attributes: + - name: id + description: License Model ID + scope: short + type: string +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-license-models/${vlm-id}/versions/${vlm-version}/license-key-groups + method: POST + body: '{"name": "${name}", "type": "${type}"}' + success_codes: + - 200 + result_map: + id: $b{$.value}
\ No newline at end of file diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml new file mode 100644 index 00000000..70897538 --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-list-schema-elalto.yaml @@ -0,0 +1,46 @@ +# 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-list +description: List the vendor license models in ONAP + +info: + product: onap-elalto + service: sdc.onboarding + author: ONAP HPA Integration Team (onap-discuss@lists.onap.org) + +results: + direction: landscape + attributes: + - name: vlm-name + description: name of the vendor license model + scope: short + type: string + - name: vlm-id + description: ID of the vendor license model + scope: short + type: string +http: + service: + auth: basic + mode: direct + request: + uri: /onboarding-api/v1.0/vendor-license-models + method: GET + success_codes: + - 200 + result_map: + vlm-name: $b{results.[*].name} + vlm-id: $b{results.[*].id} diff --git a/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-schema-elalto.yaml new file mode 100644 index 00000000..d03b697b --- /dev/null +++ b/products/onap-elalto/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-submit-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: vlm-submit +description: Submit Vendor License Model + +info: + product: onap-elalto + service: sdc.onboarding + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: vlm-id + description: Onap VLM ID + type: string + short_option: x + long_option: vlm-id + is_optional: false + - name: vlm-version + description: VLM version + type: string + short_option: y + long_option: vlm-version + 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}/versions/${vlm-version}/actions + method: PUT + body: '{"action": "Submit"}' + success_codes: + - 201 + - 200 |