diff options
author | Kanagaraj Manickam <kanagaraj.manickam@huawei.com> | 2017-10-16 06:04:48 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2017-10-16 06:04:48 +0000 |
commit | 878e79ea47fe7500982c9703bcd253aa5a512d69 (patch) | |
tree | 10da955250b0e9eb2177e0b686f3ed87090c9cba /plugins/sdc/src/main/resources/onap-cli-schema/license-models | |
parent | dd0f4438e8dea6ef68a043488545e3efcb3fa78a (diff) | |
parent | 2970a94f5eadaed71e33f8a955c559d32515751a (diff) |
Merge changes I12c3d643,Ief5364ab,Ifd108587,I3cecf6b6
* changes:
Implement command for license-key-group
Add CLI cmd for license model create v1.1
Fix url for license-model-show v1.0
Impement CMD yaml for fetching license
Diffstat (limited to 'plugins/sdc/src/main/resources/onap-cli-schema/license-models')
4 files changed, 141 insertions, 1 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml new file mode 100644 index 00000000..bc5d0b97 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-key-group-create-schema-1.1.yaml @@ -0,0 +1,56 @@ +open_cli_schema_version: 1.0 +name: license-key-group-create +description: Create License Key Group +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: license-model-id + description: License Model Id + type: uuid + short_option: c + long_option: license-model-id + is_optional: false + - name: name + description: name + type: string + short_option: x + long_option: name + is_optional: false + - name: type + description: type of group (Universal, unique, one-time) + type: string + short_option: y + long_option: type + is_optional: false + - name: description + description: Description for License Key Group + type: string + short_option: z + long_option: description + is_optional: true + - name: operational-scope + description: Operational Scope + type: string + long_option: operational-scope + is_optional: true +results: + direction: portrait + attributes: + - name: ID + description: License Model ID + scope: short + type: string +http: + request: + uri: /onboarding-api/v1.0/vendor-license-models/${license-model-id}/versions/0.1/license-key-groups + method: POST + body: '{"description": "${description}","name": "${name}","operationalScope": {"choices": ["${operational-scope}"],"other": ""},"type": "${type}"}' + success_codes: + - 200 + result_map: + ID: $b{$.value}
\ No newline at end of file diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml new file mode 100644 index 00000000..504af072 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-create-schema-1.1.yaml @@ -0,0 +1,39 @@ +open_cli_schema_version: 1.0 +name: license-model-create +description: Create License Model +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: vendor-name + description: vendor name + type: string + short_option: x + long_option: vendor-name + is_optional: false + - name: license-model-description + description: Description for License Model + type: string + short_option: y + long_option: license-model-description + is_optional: true +results: + direction: portrait + attributes: + - name: ID + description: License Model ID + scope: short + type: uuid +http: + request: + uri: /onboarding-api/v1.0/vendor-license-models + method: POST + body: '{"vendorName": "${vendor-name}", "description": "${license-model-description}", "iconRef": "icon"}' + success_codes: + - 200 + result_map: + ID: $b{$.value}
\ No newline at end of file diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml new file mode 100644 index 00000000..8e4c27b5 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema-1.1.yaml @@ -0,0 +1,45 @@ +open_cli_schema_version: 1.0 +name: license-model-show +description: List License Model +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +results: + direction: landscape + attributes: + - name: id + description: License ID + scope: short + type: uuid + - name: vendor-name + description: Vendor Name + scope: short + type: string + - name: icon-ref + description: icon ref + scope: long + type: string + - name: status + description: status + scope: short + type: string + - name: description + description: License description + scope: long + type: string +http: + request: + uri: /onboarding-api/v1.0/vendor-license-models + method: GET + success_codes: + - 200 + result_map: + id: $b{$.results.[*].id} + vendor-name: $b{$.results.[*].vendorName} + icon-ref: $b{$.results.[*].iconRef} + status: $b{$.results.[*].status} + description: $b{$.results.[*].description}
\ No newline at end of file diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml index 8214c19c..52803f7f 100644 --- a/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml +++ b/plugins/sdc/src/main/resources/onap-cli-schema/license-models/license-model-show-schema.yaml @@ -37,7 +37,7 @@ results: type: string http: request: - uri: /onboarding-api/v1.0/vendor-software-products/${license-model-id} + uri: /onboarding-api/v1.0/vendor-license-models/${license-model-id} method: GET success_codes: - 200 |