1 # Copyright 2018 Huawei Technologies Co., Ltd.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 open_cli_schema_version: 1.0
17 description: Oclip sample command to test the command features
23 author: Kanagaraj Manickam kanagaraj.manickam@huawei.com
28 description: Oclip boolean param, by default its always false.
35 description: Oclip secure param such as password
40 default_Value: pass123#
43 description: Oclip string param
44 long_option: string-param
50 description: Oclip yaml file location param
51 long_option: yaml-param
56 description: Oclip json file location param
57 long_option: json-param
62 description: Oclip long param
69 description: Oclip url param
73 default_value: http://localhost:8082/file.txt
76 description: Oclip env param.
80 default_value: ${ENV_VAR}
81 - name: positional-args
83 description: Oclip positional args, if no short option and no long option given for it
85 default_value: http://localhost:8082/file.txt
90 body: '{"name":"${name}","vendor":"${vendor}","version":"${vim-version}","description":"${description}","type":"${type}","url":"${url}","userName":"${username}","password":"${password}","domain":"${domain}","tenant":"${tenant}"}'
93 remove_empty_node: true
102 version: $b{$.version}
104 description: $b{$.description}
105 username: $b{$.userName}
106 password: $b{$.password}
109 create-time: $b{$.createTime}
111 body:'{"id":"string","name":"string","vendor":"string","version":"string","description":"string","type":"string","createTime":"string","url":"string","userName":"string","password":"string","domain":"string","tenant":"string"}'