1 package org.onap.simulator.presetGenerator.presets.aai;
3 import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
4 import org.springframework.http.HttpMethod;
6 public class PresetAAIGetVfModulesByVnf extends BaseAAIPreset {
7 private final String vnfInstanceId;
9 public PresetAAIGetVfModulesByVnf(String vnfInstanceId) {
10 this.vnfInstanceId = vnfInstanceId;
14 public HttpMethod getReqMethod() {
15 return HttpMethod.GET;
19 public String getReqPath() {
20 return getRootPath() + "/network/generic-vnfs/generic-vnf/" + this.vnfInstanceId + "/vf-modules";
24 public Object getResponseBody() {
27 " \"vf-module\": [{" +
28 " \"vf-module-id\": \"2c1ca484-cbc2-408b-ab86-25a2c15ce280\"," +
29 " \"vf-module-name\": \"ss820f_0918_db\"," +
30 " \"orchestration-status\": \"deleted\"," +
31 " \"is-base-vf-module\": false," +
32 " \"in-maint\": true," +
33 " \"automated-assignment\": false," +
34 " \"resource-version\": \"1537396469591\"," +
35 " \"model-invariant-id\": \"09edc9ef-85d0-4b26-80de-1f569d49e750\"," +
36 " \"model-version-id\": \"522159d5-d6e0-4c2a-aa44-5a542a12a830\"," +
37 " \"model-customization-id\": \"55b1be94-671a-403e-a26c-667e9c47d091\"," +
38 " \"module-index\": 0," +
39 " \"relationship-list\": {" +
40 " \"relationship\": [{" +
41 " \"related-to\": \"vnfc\"," +
42 " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
43 " \"related-link\": \"/aai/v13/network/vnfcs/vnfc/ss820f_0918_refvnf_vnfinstancem002mmb001\"," +
44 " \"relationship-data\": [{" +
45 " \"relationship-key\": \"vnfc.vnfc-name\"," +
46 " \"relationship-value\": \"ss820f_0918_refvnf_vnfinstancem002mmb001\"" +
53 " \"vf-module-id\": \"3ef042c4-259f-45e0-9aba-0989bd8d1cc5\"," +
54 " \"vf-module-name\": \"ss820f_0918_base\"," +
55 " \"heat-stack-id\": \"\"," +
56 " \"orchestration-status\": \"Assigned\"," +
57 " \"is-base-vf-module\": true," +
58 " \"automated-assignment\": false," +
59 " \"resource-version\": \"1537310272044\"," +
60 " \"model-invariant-id\": \"1e463c9c-404d-4056-ba56-28fd102608de\"," +
61 " \"model-version-id\": \"dc229cd8-c132-4455-8517-5c1787c18b14\"," +
62 " \"model-customization-id\": \"8ad8670b-0541-4499-8101-275bbd0e8b6a\"," +
63 " \"module-index\": 0," +
64 " \"relationship-list\": {" +
65 " \"relationship\": [{" +
66 " \"related-to\": \"vnfc\"," +
67 " \"relationship-label\": \"org.onap.relationships.inventory.Uses\"," +
68 " \"related-link\": \"/aai/v13/network/vnfcs/vnfc/ss820f_0918_refvnf_vnfinstancem001mmb001\"," +
69 " \"relationship-data\": [{" +
70 " \"relationship-key\": \"vnfc.vnfc-name\"," +
71 " \"relationship-value\": \"ss820f_0918_refvnf_vnfinstancem001mmb001\"" +