From e8e80aa23f5fbddd01408c776b619b2d3e1b20fa Mon Sep 17 00:00:00 2001 From: Itohan Ukponmwan Date: Tue, 12 Mar 2019 22:52:23 +0000 Subject: CLI Schema files for multicloud Schema files for CLI command to trigger multicloud registration and delete cloud region using multicloud Change-Id: Ife9e93cf61f745141f13bea8d87b46b0afcc238a Issue-ID: CLI-133 CLI-152 Signed-off-by: Itohan Ukponmwan --- .../multicloud-cloud-delete-schema-moco.json | 15 +++++++ .../multicloud-cloud-delete-schema-sample.yaml | 22 +++++++++++ .../multicloud-register-cloud-schema-moco.json | 15 +++++++ .../multicloud-register-cloud-schema-sample.yaml | 22 +++++++++++ .../multicloud-cloud-delete-schema.yaml | 46 ++++++++++++++++++++++ .../multicloud-register-cloud-schema.yaml | 46 ++++++++++++++++++++++ 6 files changed, 166 insertions(+) create mode 100644 products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-moco.json create mode 100644 products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-sample.yaml create mode 100644 products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json create mode 100644 products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml create mode 100644 products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-cloud-delete-schema.yaml create mode 100644 products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml (limited to 'products/onap-dublin/features/multicloud') diff --git a/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-moco.json b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-moco.json new file mode 100644 index 00000000..1f0c3103 --- /dev/null +++ b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-moco.json @@ -0,0 +1,15 @@ +[ { + "request" : { + "method" : "delete", + "uri" : "/api/multicloud-titaniumcloud/v0/CloudOwner_ONAP-POD-01-Rail-07", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 204, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-sample.yaml b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-sample.yaml new file mode 100644 index 00000000..53d11ef5 --- /dev/null +++ b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-sample.yaml @@ -0,0 +1,22 @@ +# 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_sample_version: 1.0 +name: multicloud-cloud-delete +version: onap-dublin +samples: + sample1: + name: multicloud-cloud-delete + input: -y CloudOwner -x ONAP-POD-01-Rail-07 + moco: multicloud-cloud-delete-schema-moco.json + output: \ No newline at end of file diff --git a/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json new file mode 100644 index 00000000..028a5fcd --- /dev/null +++ b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json @@ -0,0 +1,15 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/api/multicloud/v0/CloudOwner_ONAP-POD-01-Rail-07/registry", + "headers" : { + "Accept" : "application/json", + "Content-Type" : "application/json" + }, + "json" : null + }, + "response" : { + "status" : 202, + "json" : null + } +} ] \ No newline at end of file diff --git a/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml new file mode 100644 index 00000000..3193567d --- /dev/null +++ b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml @@ -0,0 +1,22 @@ +# 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_sample_version: 1.0 +name: multicloud-register-cloud +version: onap-dublin +samples: + sample1: + name: multicloud-register-cloud + input: -y CloudOwner -x ONAP-POD-01-Rail-07 + moco: multicloud-register-cloud-schema-moco.json + output: \ No newline at end of file diff --git a/products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-cloud-delete-schema.yaml b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-cloud-delete-schema.yaml new file mode 100644 index 00000000..ca47473d --- /dev/null +++ b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-cloud-delete-schema.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: multicloud-cloud-delete +description: Deletes a cloud region, can be used to directly delete cloud referenced by other resources + +info: + product: onap-dublin + service: multicloud + author: ONAP HPA Integration Team (itohan.ukponmwan@intel.com) + +parameters: + - name: cloud-region + description: Onap Cloud region name + type: string + short_option: x + long_option: cloud-region + is_optional: false + - name: cloud-owner + description: Onap Cloud Owner name + type: string + short_option: y + long_option: cloud-owner + is_optional: false + +http: + service: + auth: none + mode: direct + request: + uri: /api/multicloud-titaniumcloud/v0/${cloud-owner}_${cloud-region} + method: DELETE + success_codes: + - 204 diff --git a/products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml new file mode 100644 index 00000000..8f582e21 --- /dev/null +++ b/products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.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: multicloud-register-cloud +description: Register a cloud region with multicloud plugin + +info: + product: onap-dublin + service: multicloud + author: ONAP HPA Integration Team (itohan.ukponmwan@intel.com) + +parameters: + - name: cloud-region + description: Onap Cloud region name + type: string + short_option: x + long_option: cloud-region + is_optional: false + - name: cloud-owner + description: Onap Cloud Owner name + type: string + short_option: y + long_option: cloud-owner + is_optional: false + +http: + service: + auth: none + mode: direct + request: + uri: /api/multicloud/v0/${cloud-owner}_${cloud-region}/registry + method: POST + success_codes: + - 202 -- cgit 1.2.3-korg