CLI Schema files for multicloud 72/82072/6
authorItohan Ukponmwan <itohan.ukponmwan@intel.com>
Tue, 12 Mar 2019 22:52:23 +0000 (22:52 +0000)
committerItohan Ukponmwan <itohan.ukponmwan@intel.com>
Wed, 13 Mar 2019 23:53:20 +0000 (23:53 +0000)
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 <itohan.ukponmwan@intel.com>
products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-moco.json [new file with mode: 0644]
products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-cloud-delete-schema-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-moco.json [new file with mode: 0644]
products/onap-dublin/features/multicloud/src/main/resources/open-cli-sample/multicloud-register-cloud-schema-sample.yaml [new file with mode: 0644]
products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-cloud-delete-schema.yaml [new file with mode: 0644]
products/onap-dublin/features/multicloud/src/main/resources/open-cli-schema/multicloud-register-cloud-schema.yaml [new file with mode: 0644]

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 (file)
index 0000000..1f0c310
--- /dev/null
@@ -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 (file)
index 0000000..53d11ef
--- /dev/null
@@ -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 (file)
index 0000000..028a5fc
--- /dev/null
@@ -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 (file)
index 0000000..3193567
--- /dev/null
@@ -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 (file)
index 0000000..ca47473
--- /dev/null
@@ -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 (file)
index 0000000..8f582e2
--- /dev/null
@@ -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