diff options
Diffstat (limited to 'products/onap-beijing')
3 files changed, 135 insertions, 0 deletions
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-beijing-moco.json b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-beijing-moco.json new file mode 100644 index 00000000..44038797 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-beijing-moco.json @@ -0,0 +1,29 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/onboarding-api/v1.0/vendor-license-models/cf2d907d998e44698ce3b4cded5f66a7/versions/1.1/license-agreements", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-4edc751f-3742-4381-b58b-86e6cf50fe78", + "Content-Type" : "application/json" + }, + "json" : { + "addedFeatureGroupsIds" : [ "3a2fb75b52a54e9c8093e7c154210f9e" ], + "description" : "kanag cli la", + "licenseTerm" : { + "choice" : "Fixed_Term", + "other" : "" + }, + "name" : "kanag-cli-la" + } + }, + "response" : { + "status" : 200, + "json" : { + "value" : "77e151d0503b45ecb7e40f5f5f1a887e" + } + } +} ]
\ No newline at end of file diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-beijing-sample.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-schema-beijing-sample.yaml new file mode 100644 index 00000000..6601b866 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/vlm/vlm-aggreement-create-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: vlm-aggreement-create +version: onap-beijing +samples: + sample1: + name: vlm-aggreement-create + input: --name kanag-cli-la --description kanag cli la --vlm-feature-group-id 3a2fb75b52a54e9c8093e7c154210f9e --vlm-id cf2d907d998e44698ce3b4cded5f66a7 --vlm-version 1.1 + moco: vlm-aggreement-create-schema-1.1-moco.json + output: | + +----------+----------------------------------+ + |property |value | + +----------+----------------------------------+ + |ID |77e151d0503b45ecb7e40f5f5f1a887e | + +----------+----------------------------------+ diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-beijing.yaml new file mode 100644 index 00000000..3cc996fe --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/vlm/vlm-aggreement-create-schema-beijing.yaml @@ -0,0 +1,78 @@ +# 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-create +description: Create license aggreement + +info: + product: onap-beijing + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + +parameters: + - name: name + description: aggreement name + type: string + short_option: x + long_option: name + is_optional: false + - name: vlm-id + description: License Model ID + type: string + short_option: y + long_option: vlm-id + is_optional: false + - name: vlm-version + description: License Model version + type: string + short_option: e + long_option: vlm-version + is_optional: false + - name: description + description: Description for aggreement + type: string + short_option: z + long_option: description + is_optional: false + - name: vlm-feature-group-id + description: VLM feature group + type: string + short_option: g + long_option: vlm-feature-group-id + is_optional: false + +results: + direction: portrait + attributes: + - name: ID + description: aggreement ID + 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: POST + body: '{"addedFeatureGroupsIds": ["${vlm-feature-group-id}"], "description": "${description}", "licenseTerm": {"choice": "Fixed_Term", "other": ""}, "name": "${name}"}' + success_codes: + - 200 + result_map: + ID: $b{$.value} + sample_response: + body: '{"value":"2DEB6CB4B082415BB7A697C9CD1273BA"}' |