diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2019-03-14 06:56:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-14 06:56:27 +0000 |
commit | 72e01174faa3376fb5c095715b3e4cca037ff969 (patch) | |
tree | b4aa18560ab39d31b1183d8c0e12e06a9f4e9018 /products/onap-dublin/features | |
parent | 7bdf1ffcec130d6e0f76cd4b69919f7fdc6b805f (diff) | |
parent | e8e80aa23f5fbddd01408c776b619b2d3e1b20fa (diff) |
Merge "CLI Schema files for multicloud"
Diffstat (limited to 'products/onap-dublin/features')
6 files changed, 166 insertions, 0 deletions
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 |