aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer
diff options
context:
space:
mode:
Diffstat (limited to 'products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer')
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-moco.json22
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-sample.yaml24
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-moco.json18
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-sample.yaml24
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-moco.json35
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-sample.yaml32
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-moco.json23
-rw-r--r--products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-sample.yaml28
8 files changed, 206 insertions, 0 deletions
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-moco.json b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-moco.json
new file mode 100644
index 00000000..18bb05d7
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-moco.json
@@ -0,0 +1,22 @@
+[ {
+ "request" : {
+ "method" : "put",
+ "uri" : "/aai/v11/business/customers/customer/test",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-9ad55bff-efbb-4306-bc8a-b76687e8e065",
+ "Content-Type" : "application/json"
+ },
+ "json" : {
+ "global-customer-id" : "test",
+ "subscriber-name" : "test",
+ "subscriber-type" : "INFRA"
+ }
+ },
+ "response" : {
+ "status" : 201,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-sample.yaml b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-sample.yaml
new file mode 100644
index 00000000..0272dc27
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-create-schema-beijing-sample.yaml
@@ -0,0 +1,24 @@
+# Copyright 2018 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_sample_version: 1.0
+name: customer-create
+version: onap-beijing
+samples:
+ sample1:
+ name: customer-create
+ input: --customer-name test --subscriber-name test
+ moco: customer-create-schema-1.1-moco.json
+ output: |
+
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-moco.json b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-moco.json
new file mode 100644
index 00000000..26e8a918
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-moco.json
@@ -0,0 +1,18 @@
+[ {
+ "request" : {
+ "method" : "delete",
+ "uri" : "/aai/v11/business/customers/customer/test",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-5f5bb7d0-5d03-42a3-a24f-fd8d125a7a8e",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 204,
+ "json" : null
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-sample.yaml b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-sample.yaml
new file mode 100644
index 00000000..9f8331c5
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-delete-schema-beijing-sample.yaml
@@ -0,0 +1,24 @@
+# Copyright 2018 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_sample_version: 1.0
+name: customer-delete
+version: onap-beijing
+samples:
+ sample1:
+ name: customer-delete
+ input: --customer-name test --resource-version 1509029022293
+ moco: customer-delete-schema-1.1-moco.json
+ output: |
+
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-moco.json b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-moco.json
new file mode 100644
index 00000000..f7737271
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-moco.json
@@ -0,0 +1,35 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v11/business/customers",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-f56d4034-1ee8-469c-848a-8b9cd1afa19b",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "customer" : [ {
+ "global-customer-id" : "test",
+ "subscriber-name" : "test",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1509029022293"
+ }, {
+ "global-customer-id" : "kanag",
+ "subscriber-name" : "kanag",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1509029007060"
+ }, {
+ "global-customer-id" : "Demonstration",
+ "subscriber-name" : "Demonstration",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1508827908763"
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-sample.yaml b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-sample.yaml
new file mode 100644
index 00000000..f76ed220
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-list-schema-beijing-sample.yaml
@@ -0,0 +1,32 @@
+# Copyright 2018 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_sample_version: 1.0
+name: customer-list
+version: onap-beijing
+samples:
+ sample1:
+ name: customer-list
+ input:
+ moco: customer-list-schema-1.1-moco.json
+ output: |
+ +----------------+------------------+
+ |name |resource-version |
+ +----------------+------------------+
+ |test |1509029022293 |
+ +----------------+------------------+
+ |kanag |1509029007060 |
+ +----------------+------------------+
+ |Demonstration |1508827908763 |
+ +----------------+------------------+
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-moco.json b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-moco.json
new file mode 100644
index 00000000..242db8c1
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-moco.json
@@ -0,0 +1,23 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/aai/v11/business/customers/customer/kanag",
+ "headers" : {
+ "Authorization" : "Basic QUFJOkFBSQ==",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "X-TransactionId" : "req-95e5eac5-6839-49f3-8f9e-786789e69c67",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "global-customer-id" : "kanag",
+ "subscriber-name" : "kanag",
+ "subscriber-type" : "INFRA",
+ "resource-version" : "1509029007060"
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-sample.yaml b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-sample.yaml
new file mode 100644
index 00000000..942b81b5
--- /dev/null
+++ b/products/onap-beijing/features/aai/src/main/resources/open-cli-sample/customer/customer-show-schema-beijing-sample.yaml
@@ -0,0 +1,28 @@
+# Copyright 2018 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_sample_version: 1.0
+name: customer-show
+version: onap-beijing
+samples:
+ sample1:
+ name: customer-show
+ input: --customer-name kanag --long
+ moco: customer-show-schema-1.1-moco.json
+ output: |
+ +--------+------------------+------------------+------------------+
+ |name |subscriber-name |resource-version |subscriber-type |
+ +--------+------------------+------------------+------------------+
+ |kanag |kanag |1509029007060 |INFRA |
+ +--------+------------------+------------------+------------------+