diff options
author | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-09-14 20:42:01 +0530 |
---|---|---|
committer | Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com> | 2017-09-14 20:58:48 +0530 |
commit | 72b4cdffcd021828e2b4ac00b59496b0b3bc7a26 (patch) | |
tree | 70bf182bd329ea91474e18b1471453112865f931 /plugins/aai/src | |
parent | dd075504299c817ea899f32af2b558860da7c6fe (diff) |
Migrate type long into digit
CLI-3
Change-Id: I5706963146d9575a9094aa7c24b85e1a0d8e7f80
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'plugins/aai/src')
5 files changed, 7 insertions, 57 deletions
diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml index 45ffd35b..c703c651 100644 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml +++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/ems/ems-delete-schema-1.1.yaml @@ -21,7 +21,7 @@ parameters: is_optional: false - name: resource-version description: Onap vim resource version - type: uuid + type: string short_option: y long_option: resource-version is_optional: true diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml index 83afd018..fe0d22a8 100644 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml +++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-create-schema-1.1.yaml @@ -88,7 +88,7 @@ parameters: http: request: - uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/{sdnc-id} + uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/${sdnc-id} method: PUT body: '{"thirdparty-sdnc-id":"${sdnc-id}","location":"${location}","product-name":"${product-name}","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"${sdnc-id}","system-name":"${name}","type":"${type}","vendor":"${vendor}","version":"${sdnc-version}","service-url":"","user-name":"${username}","password":"${password}","system-type":"sdnc","protocal":"${protocal}","ssl-cacert":"","ssl-insecure":"","ip-address":"${ip-address}","port":"${port}","cloud-domain":"","default-tenant":""}]}}' success_codes: diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml index 3cee4726..eec0ca67 100644 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml +++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-delete-schema-1.1.yaml @@ -15,14 +15,14 @@ service: parameters: - name: sdnc-id description: Onap VNFM unique id - type: uuid + type: string short_option: x long_option: sdnc-id is_optional: false http: request: - uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/{sdnc-id} + uri: /aai/v11/external-system/esr-thirdparty-sdnc-list/esr-thirdparty-sdnc/${sdnc-id} method: DELETE success_codes: diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml index aa56b711..f84c480f 100644 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml +++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/sdnc/sdnc-list-schema-1.1.yaml @@ -19,46 +19,6 @@ results: description: Onap sdnc id scope: short type: string - - name: location - description: Onap sdnc id - scope: short - type: string - - name: name - description: Onap sdnc name - scope: short - type: string - - name: type - description: Onap sdnc type - scope: short - type: string - - name: vendor - description: Onap sdnc vendor - scope: short - type: string - - name: version - description: Onap sdnc version - scope: short - type: string - - name: ip-address - description: Onap sdnc ip-address - scope: short - type: string - - name: port - description: Onap sdnc port - scope: short - type: string - - name: protocal - description: Onap sdnc protocal - scope: short - type: string - - name: username - description: Onap sdnc username - scope: long - type: string - - name: product-name - description: Onap sdnc product-name - scope: short - type: string - name: resource-version description: Onap sdnc resource version scope: short @@ -71,18 +31,8 @@ http: success_codes: - 200 result_map: - sdnc-id: $b{$.esr-sdnc.[*].sdnc-id - location: $b{$.esr-sdnc.[*].location - name: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].system-name - type: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].type - vendor: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].vendor - version: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].version - ip-address: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].ip-address - port: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].port - protocal: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].protocal - username: $b{$.esr-sdnc.[*].esr-system-info-list.esr-system-info.[0].user-name - product-name: $b{$.esr-sdnc.[*].product-name - resource-version: $b{$.esr-sdnc.[*].resource-version + sdnc-id: $b{$.esr-sdnc.[*].sdnc-id} + resource-version: $b{$.esr-sdnc.[*].resource-version} sample_response: body: '{"esr-sdnc":[{"sdnc-id":"example-sdnc-id-val-36878","location":"location","product-name":"example-remotepath-val-80493","esr-system-info-list":{"esr-system-info":[{"esr-system-info-id":"example-esr-system-info-id-val-44791","system-name":"example-system-name-val-48687","type":"example-type-val-95885","vendor":"example-vendor-val-41061","version":"example-version-val-38559","service-url":"example-service-url-val-2663","user-name":"example-user-name-val-26126","password":"example-password-val-33838","system-type":"sdnc","protocal":"","ssl-cacert":"","ssl-insecure":false,"ip-address":"","port":"","cloud-domain":"","default-tenant":""}]}}]}' diff --git a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml b/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml index 55d1604f..ee74ead5 100644 --- a/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml +++ b/plugins/aai/src/main/resources/onap-cli-schema/esr/vim/vim-delete-schema-1.1.yaml @@ -33,7 +33,7 @@ parameters: is_optional: false - name: resource-version description: Onap vim resource version - type: uuid + type: string short_option: b long_option: resource-version is_optional: true |