1 package org.onap.simulator.presetGenerator.presets.aai;
3 import com.google.common.collect.ImmutableMap;
4 import java.util.Collections;
7 import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
8 import org.springframework.http.HttpMethod;
10 public class PresetAAIGetModelsByOwningEntity extends BaseAAIPreset {
13 public PresetAAIGetModelsByOwningEntity(String oeName) {
18 public HttpMethod getReqMethod() {
19 return HttpMethod.GET;
23 public String getReqPath() {
24 return getRootPath() + "/business/owning-entities";
28 public Map<String, List> getQueryParams() {
29 return ImmutableMap.of(
30 "owning-entity-id", Collections.singletonList(oeName)
35 public Object getResponseBody() {
37 " \"owning-entity\": [" +
39 " \"owning-entity-id\": \"43b8a85a-0421-4265-9069-117dd6526b8a\"," +
40 " \"owning-entity-name\": \"" + oeName + "\"," +
41 " \"resource-version\": \"1527418700853\"," +
42 " \"relationship-list\": {" +
43 " \"relationship\": [" +
45 " \"related-to\": \"service-instance\"," +
46 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
47 " \"related-link\": \"/aai/v12/business/customers/customer/CAR_2020_ER/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/af9d52f9-13b2-4657-a198-463677f82dc0\"," +
48 " \"relationship-data\": [" +
50 " \"relationship-key\": \"customer.global-customer-id\"," +
51 " \"relationship-value\": \"CAR_2020_ER\"" +
54 " \"relationship-key\": \"service-subscription.service-type\"," +
55 " \"relationship-value\": \"MSO-dev-service-type\"" +
58 " \"relationship-key\": \"service-instance.service-instance-id\"," +
59 " \"relationship-value\": \"af9d52f9-13b2-4657-a198-463677f82dc0\"" +
62 " \"related-to-property\": [" +
64 " \"property-key\": \"service-instance.service-instance-name\"," +
65 " \"property-value\": \"xbghrftgr_shani\"" +
70 " \"related-to\": \"service-instance\"," +
71 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
72 " \"related-link\": \"/aai/v12/business/customers/customer/CAR_2020_ER/service-subscriptions/service-subscription/MSO-dev-service-type/service-instances/service-instance/49769492-5def-4c89-8e73-b236f958fa40\"," +
73 " \"relationship-data\": [" +
75 " \"relationship-key\": \"customer.global-customer-id\"," +
76 " \"relationship-value\": \"CAR_2020_ER\"" +
79 " \"relationship-key\": \"service-subscription.service-type\"," +
80 " \"relationship-value\": \"MSO-dev-service-type\"" +
83 " \"relationship-key\": \"service-instance.service-instance-id\"," +
84 " \"relationship-value\": \"49769492-5def-4c89-8e73-b236f958fa40\"" +
87 " \"related-to-property\": [" +
89 " \"property-key\": \"service-instance.service-instance-name\"," +
90 " \"property-value\": \"fghghfhgf\"" +
95 " \"related-to\": \"service-instance\"," +
96 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
97 " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/vMOG/service-instances/service-instance/13695dfb-db99-4c2f-905e-fe7bf2fc7b9f\"," +
98 " \"relationship-data\": [" +
100 " \"relationship-key\": \"customer.global-customer-id\"," +
101 " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
104 " \"relationship-key\": \"service-subscription.service-type\"," +
105 " \"relationship-value\": \"vMOG\"" +
108 " \"relationship-key\": \"service-instance.service-instance-id\"," +
109 " \"relationship-value\": \"13695dfb-db99-4c2f-905e-fe7bf2fc7b9f\"" +
112 " \"related-to-property\": [" +
114 " \"property-key\": \"service-instance.service-instance-name\"," +
115 " \"property-value\": \"FIRSTNET_DEMO\"" +
120 " \"related-to\": \"service-instance\"," +
121 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
122 " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/7e4f8130-5dee-47c4-8770-1abc5f5ded83\"," +
123 " \"relationship-data\": [" +
125 " \"relationship-key\": \"customer.global-customer-id\"," +
126 " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
129 " \"relationship-key\": \"service-subscription.service-type\"," +
130 " \"relationship-value\": \"Emanuel\"" +
133 " \"relationship-key\": \"service-instance.service-instance-id\"," +
134 " \"relationship-value\": \"7e4f8130-5dee-47c4-8770-1abc5f5ded83\"" +
137 " \"related-to-property\": [" +
139 " \"property-key\": \"service-instance.service-instance-name\"," +
140 " \"property-value\": \"Amir123\"" +
145 " \"related-to\": \"service-instance\"," +
146 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
147 " \"related-link\": \"/aai/v12/business/customers/customer/a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb/service-subscriptions/service-subscription/Emanuel/service-instances/service-instance/d849b312-03f6-4fa3-a923-a469b850ec73\"," +
148 " \"relationship-data\": [" +
150 " \"relationship-key\": \"customer.global-customer-id\"," +
151 " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
154 " \"relationship-key\": \"service-subscription.service-type\"," +
155 " \"relationship-value\": \"Emanuel\"" +
158 " \"relationship-key\": \"service-instance.service-instance-id\"," +
159 " \"relationship-value\": \"d849b312-03f6-4fa3-a923-a469b850ec73\"" +
162 " \"related-to-property\": [" +
164 " \"property-key\": \"service-instance.service-instance-name\"," +
165 " \"property-value\": \"edbh54\"" +