aboutsummaryrefslogtreecommitdiffstats
path: root/products/onap-beijing/features/sdc
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-19 16:20:54 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-03-19 16:20:54 +0530
commitf73bb65c52a19664e6457da8bd99fcdeb39ea4f7 (patch)
tree95f94f3b6ebacd6ca04aa1d07a6a2ca9e8419ef0 /products/onap-beijing/features/sdc
parent6d6310e6be8a572a7b27240df71e6bd6bb3a4c4d (diff)
CLI: vlm-aggreement-list beijing
Change-Id: I5fb2a9090ed7c5c1029fdf5e687e882491ef5d3d Issue-ID: CLI-100 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'products/onap-beijing/features/sdc')
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-moco.json40
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-sample.yaml30
-rw-r--r--products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-list-schema-beijing.yaml63
3 files changed, 133 insertions, 0 deletions
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-moco.json b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-moco.json
new file mode 100644
index 00000000..3da67ac8
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-moco.json
@@ -0,0 +1,40 @@
+[ {
+ "request" : {
+ "method" : "get",
+ "uri" : "/onboarding-api/v1.0/vendor-license-models/cf2d907d998e44698ce3b4cded5f66a7/versions/2.0/license-agreements",
+ "headers" : {
+ "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh",
+ "X-FromAppId" : "onap-cli",
+ "Accept" : "application/json",
+ "USER_ID" : "cs0008",
+ "X-TransactionId" : "req-66a37478-d840-44f8-b436-56f4a3b6f640",
+ "Content-Type" : "application/json"
+ },
+ "json" : null
+ },
+ "response" : {
+ "status" : 200,
+ "json" : {
+ "listCount" : 2,
+ "results" : [ {
+ "name" : "sf",
+ "description" : "sdfgdf",
+ "licenseTerm" : {
+ "choice" : "Fixed_Term",
+ "other" : ""
+ },
+ "id" : "1e2edfccaca847f896070d0fac26667a",
+ "featureGroupsIds" : [ "3a2fb75b52a54e9c8093e7c154210f9e" ]
+ }, {
+ "name" : "kanag-cli-la",
+ "description" : "kanag cli la",
+ "licenseTerm" : {
+ "choice" : "Fixed_Term",
+ "other" : ""
+ },
+ "id" : "77e151d0503b45ecb7e40f5f5f1a887e",
+ "featureGroupsIds" : [ "3a2fb75b52a54e9c8093e7c154210f9e" ]
+ } ]
+ }
+ }
+} ] \ No newline at end of file
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-sample.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-sample.yaml
new file mode 100644
index 00000000..01823724
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-list-schema-beijing-sample.yaml
@@ -0,0 +1,30 @@
+# 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: vlm-aggreement-list
+version: onap-beijing
+samples:
+ sample1:
+ name: vlm-aggreement-list
+ input: --vlm-id cf2d907d998e44698ce3b4cded5f66a7 --vlm-version 2.0
+ moco: vlm-aggreement-list-schema-1.1-moco.json
+ output: |
+ +----------------------------------+--------------+
+ |ID |name |
+ +----------------------------------+--------------+
+ |1e2edfccaca847f896070d0fac26667a |sf |
+ +----------------------------------+--------------+
+ |77e151d0503b45ecb7e40f5f5f1a887e |kanag-cli-la |
+ +----------------------------------+--------------+
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-list-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-list-schema-beijing.yaml
new file mode 100644
index 00000000..c0c34c59
--- /dev/null
+++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-list-schema-beijing.yaml
@@ -0,0 +1,63 @@
+# 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_schema_version: 1.0
+name: vlm-aggreement-list
+description: List license aggreement
+
+info:
+ product: onap-beijing
+ service: sdc
+ author: ONAP CLI Team onap-discuss@lists.onap.org
+
+parameters:
+ - name: vlm-id
+ description: License Model ID
+ type: string
+ short_option: x
+ long_option: vlm-id
+ is_optional: false
+ - name: vlm-version
+ description: License Model version
+ type: string
+ short_option: y
+ long_option: vlm-version
+ is_optional: false
+
+results:
+ direction: landscape
+ attributes:
+ - name: ID
+ description: aggreement ID
+ scope: short
+ type: string
+ - name: name
+ description: aggreement name
+ 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: GET
+ success_codes:
+ - 200
+ result_map:
+ ID: $b{results.[*].id}
+ name: $b{results.[*].name}
+