1 package org.onap.simulator.presetGenerator.presets.aai;
3 import com.google.common.collect.ImmutableMap;
4 import org.onap.simulator.presetGenerator.presets.BasePresets.BaseAAIPreset;
5 import org.springframework.http.HttpMethod;
7 import java.util.Collections;
11 public class PresetAAIGetModelsByOwningEntity extends BaseAAIPreset {
14 public PresetAAIGetModelsByOwningEntity(String oeName) {
19 public HttpMethod getReqMethod() {
20 return HttpMethod.GET;
24 public String getReqPath() {
25 return getRootPath() + "/business/owning-entities";
29 public Map<String, List> getQueryParams() {
30 return ImmutableMap.of(
31 "owning-entity-id", Collections.singletonList(oeName)
36 public Object getResponseBody() {
38 " \"owning-entity\": [" +
40 " \"owning-entity-id\": \"43b8a85a-0421-4265-9069-117dd6526b8a\"," +
41 " \"owning-entity-name\": \"" + oeName + "\"," +
42 " \"resource-version\": \"1527418700853\"," +
43 " \"relationship-list\": {" +
44 " \"relationship\": [" +
46 " \"related-to\": \"service-instance\"," +
47 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
48 " \"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\"," +
49 " \"relationship-data\": [" +
51 " \"relationship-key\": \"customer.global-customer-id\"," +
52 " \"relationship-value\": \"CAR_2020_ER\"" +
55 " \"relationship-key\": \"service-subscription.service-type\"," +
56 " \"relationship-value\": \"MSO-dev-service-type\"" +
59 " \"relationship-key\": \"service-instance.service-instance-id\"," +
60 " \"relationship-value\": \"af9d52f9-13b2-4657-a198-463677f82dc0\"" +
63 " \"related-to-property\": [" +
65 " \"property-key\": \"service-instance.service-instance-name\"," +
66 " \"property-value\": \"xbghrftgr_shani\"" +
71 " \"related-to\": \"service-instance\"," +
72 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
73 " \"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\"," +
74 " \"relationship-data\": [" +
76 " \"relationship-key\": \"customer.global-customer-id\"," +
77 " \"relationship-value\": \"CAR_2020_ER\"" +
80 " \"relationship-key\": \"service-subscription.service-type\"," +
81 " \"relationship-value\": \"MSO-dev-service-type\"" +
84 " \"relationship-key\": \"service-instance.service-instance-id\"," +
85 " \"relationship-value\": \"49769492-5def-4c89-8e73-b236f958fa40\"" +
88 " \"related-to-property\": [" +
90 " \"property-key\": \"service-instance.service-instance-name\"," +
91 " \"property-value\": \"fghghfhgf\"" +
96 " \"related-to\": \"service-instance\"," +
97 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
98 " \"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\"," +
99 " \"relationship-data\": [" +
101 " \"relationship-key\": \"customer.global-customer-id\"," +
102 " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
105 " \"relationship-key\": \"service-subscription.service-type\"," +
106 " \"relationship-value\": \"vMOG\"" +
109 " \"relationship-key\": \"service-instance.service-instance-id\"," +
110 " \"relationship-value\": \"13695dfb-db99-4c2f-905e-fe7bf2fc7b9f\"" +
113 " \"related-to-property\": [" +
115 " \"property-key\": \"service-instance.service-instance-name\"," +
116 " \"property-value\": \"FIRSTNET_DEMO\"" +
121 " \"related-to\": \"service-instance\"," +
122 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
123 " \"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\"," +
124 " \"relationship-data\": [" +
126 " \"relationship-key\": \"customer.global-customer-id\"," +
127 " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
130 " \"relationship-key\": \"service-subscription.service-type\"," +
131 " \"relationship-value\": \"Emanuel\"" +
134 " \"relationship-key\": \"service-instance.service-instance-id\"," +
135 " \"relationship-value\": \"7e4f8130-5dee-47c4-8770-1abc5f5ded83\"" +
138 " \"related-to-property\": [" +
140 " \"property-key\": \"service-instance.service-instance-name\"," +
141 " \"property-value\": \"Amir123\"" +
146 " \"related-to\": \"service-instance\"," +
147 " \"relationship-label\": \"org.onap.relationships.inventory.BelongsTo\"," +
148 " \"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\"," +
149 " \"relationship-data\": [" +
151 " \"relationship-key\": \"customer.global-customer-id\"," +
152 " \"relationship-value\": \"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb\"" +
155 " \"relationship-key\": \"service-subscription.service-type\"," +
156 " \"relationship-value\": \"Emanuel\"" +
159 " \"relationship-key\": \"service-instance.service-instance-id\"," +
160 " \"relationship-value\": \"d849b312-03f6-4fa3-a923-a469b850ec73\"" +
163 " \"related-to-property\": [" +
165 " \"property-key\": \"service-instance.service-instance-name\"," +
166 " \"property-value\": \"edbh54\"" +