diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-02 14:21:30 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-11-02 14:21:30 +0530 |
commit | 86441aeb4501e7d6d6bf1a87699ce95583144a35 (patch) | |
tree | 6a837cf31e86e0818bcf3e5cef2c567dcbf98b30 /plugins/sdc/src/main/resources/onap-cli-schema | |
parent | 9ec7fe8d80918d50dc223496c134595a7b1b1c64 (diff) |
Support checkout and revert service model from SDC
CLI-57
Change-Id: I80aec4ec814bf7acbe85a5b04e13a050c8cc5a56
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/sdc/src/main/resources/onap-cli-schema')
2 files changed, 52 insertions, 0 deletions
diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-checkout-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-checkout-schema-1.1.yaml new file mode 100644 index 00000000..26c31ac4 --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-checkout-schema-1.1.yaml @@ -0,0 +1,26 @@ +open_cli_schema_version: 1.0 +name: service-model-revert +description: Checkout Service model in SDC +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: service-model-id + description: Service model ID + type: string + long_option: service-model-id + short_option: b + is_optional: true + +http: + request: + uri: /sdc2/rest/v1/catalog/services/${service-model-id}/lifecycleState/checkout + method: POST + body: '{"userRemarks": "Checked out via CLI"}' + success_codes: + - 200 + diff --git a/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-revert-schema-1.1.yaml b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-revert-schema-1.1.yaml new file mode 100644 index 00000000..fe78241e --- /dev/null +++ b/plugins/sdc/src/main/resources/onap-cli-schema/service-model/service-model-revert-schema-1.1.yaml @@ -0,0 +1,26 @@ +open_cli_schema_version: 1.0 +name: service-model-checkout +description: Checkout Service model in SDC +version: onap-1.1 +service: + name: sdc + version: v1.0 + auth: basic + mode: direct + +parameters: + - name: service-model-id + description: Service model ID + type: string + long_option: service-model-id + short_option: b + is_optional: true + +http: + request: + uri: /sdc2/rest/v1/catalog/services/${service-model-id}/lifecycleState/UNDOCHECKOUT + method: POST + body: '{"userRemarks": "Checked out via CLI"}' + success_codes: + - 200 + |