/**
* YAML file.
*/
- YAML, STRING, TEXT, LONG,
+ YAML, STRING, TEXT, DIGIT,
/**
* URL location.
*/
return YAML;
} else if (STRING.name().equalsIgnoreCase(name)) {
return STRING;
- } else if (LONG.name().equalsIgnoreCase(name)) {
- return LONG;
+ } else if (DIGIT.name().equalsIgnoreCase(name)) {
+ return DIGIT;
} else if (URL.name().equalsIgnoreCase(name)) {
return URL;
} else if (BOOL.name().equalsIgnoreCase(name)) {
assertTrue(ParameterType.JSON.equals(ParameterType.get("json"))
&& ParameterType.YAML.equals(ParameterType.get("yaml"))
&& ParameterType.STRING.equals(ParameterType.get("string"))
- && ParameterType.LONG.equals(ParameterType.get("long"))
+ && ParameterType.DIGIT.equals(ParameterType.get("digit"))
&& ParameterType.URL.equals(ParameterType.get("url"))
&& ParameterType.BOOL.equals(ParameterType.get("bool"))
&& ParameterType.MAP.equals(ParameterType.get("map"))
att.setName("name");
att.setScope(OnapCommandResultAttributeScope.LONG);
att.setSecured(true);
- att.setType(ParameterType.LONG);
+ att.setType(ParameterType.DIGIT);
att.setValues(Collections.emptyList());
assertTrue("description".equals(att.getDescription()) && "name".equals(att.getName())
&& OnapCommandResultAttributeScope.LONG.equals(att.getScope())
- && ParameterType.LONG.equals(att.getType()) && att.getValues().isEmpty());
+ && ParameterType.DIGIT.equals(att.getType()) && att.getValues().isEmpty());
}
}
short_option: j
is_optional: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
short_option: j
is_optional: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
short_option: j
is_optional: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
short_option: j
is_optional: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
short_option: j
is_optional: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
short_option: j
is_optional: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
is_optional: false
- name: status
description: Onap service status
- type: long
+ type: digit
short_option: z
long_option: service-status
is_optional: true
- name: status
description: Onap service status
scope: short
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
is_optional: false
is_secured: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
is_optional: false1
- name: status
description: Onap service status
- type: long
+ type: digit
short_option: z
long_option: service-version
is_optional: true
- name: status
description: Onap service status
scope: short1
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
is_optional: false1
- name: status
description: Onap service status
- type: long
+ type: digit
short_option: z
long_option: service-version
is_optional: true
- name: status
description: Onap service status
scope: short1
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
is_optional: false1
- name: status
description: Onap service status
- type: long
+ type: digit
short_option: z
long_option: service-version
is_optional: true
- name: status
description: Onap service status
scope: short1
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
- name: status
description: Onap service status
scope: short
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
short_option: j
is_optional: false
- name: long-param
- type: long
+ type: digit
description: Onap long param
short_option: l
long_option: long-opt
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
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:
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:
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
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":""}]}}]}'
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
- name: status
description: Onap service status
scope: short
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
sample_response:
body: '{"serviceName":"test","version":"v1","url":"/api/test/v1","protocol":"REST","visualRange":"1","lb_policy":"hash","nodes":[{"ip":"127.0.0.1","port":"8012","ttl":0,"nodeId":"test_127.0.0.1_8012","expiration":"2017-02-10T05:33:25Z","created_at":"2017-02-10T05:33:25Z","updated_at":"2017-02-10T05:33:25Z"}],"status":"1"}'
-
- name: status
description: Onap service status
scope: short
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
- name: status
description: Onap service status
scope: short
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long
- name: status
description: Onap service status
scope: short
- type: long
+ type: digit
- name: nodes
description: Onap service running nodes
scope: long