diff options
author | hekeguang <hekeguang@chinamobile.com> | 2020-02-18 19:11:41 +0800 |
---|---|---|
committer | hekeguang <hekeguang@chinamobile.com> | 2020-02-18 19:11:51 +0800 |
commit | aa2d694b0efe30f4b9f31d0dc1e865384dba5e1e (patch) | |
tree | 9a9c8eb60f316171b0df447e4115ef729e1edaf1 | |
parent | fd957fc5510f972ff1e58e990d33e6945dc25511 (diff) |
Add the bean definition related to NSMF
Issue-ID: USECASEUI-374
Change-Id: I4e71b3bc9469abca37404d1d1026cdeb2e84a26e
Signed-off-by: hekeguang <hekeguang@chinamobile.com>
38 files changed, 1410 insertions, 0 deletions
diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceInfo.java new file mode 100644 index 00000000..0a7e06c8 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceInfo.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class ServiceInfo { + + @JsonProperty("service_id") + private String serviceId; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceList.java new file mode 100644 index 00000000..19f787ef --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceList.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class ServiceList { + @JsonProperty("service_list") + private List<ServiceInfo> serviceInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserInfo.java new file mode 100644 index 00000000..442d7b29 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserInfo.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class ServiceOnlineUserInfo { + + @JsonProperty("service_id") + private String id; + + @JsonProperty("online_user_list") + private List<UserNumberInfo> userNumberInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserList.java new file mode 100644 index 00000000..7c0e5300 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceOnlineUserList.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class ServiceOnlineUserList { + + @JsonProperty("slicing_online_user_list") + private List<ServiceOnlineUserInfo> serviceOnlineUserInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthInfo.java new file mode 100644 index 00000000..eac6e36e --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthInfo.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class ServiceTotalBandwidthInfo { + + @JsonProperty("service_id") + private String id; + + @JsonProperty("total_bandwidth_list") + private List<TotalBandwidthInfo> totalBandwidthInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthList.java new file mode 100644 index 00000000..3ffc5eb7 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/ServiceTotalBandwidthList.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class ServiceTotalBandwidthList { + + @JsonProperty("slicing_total_bandwidth_list") + private List<ServiceTotalBandwidthInfo> serviceTotalBandwidthInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/SlicingKpiReqInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/SlicingKpiReqInfo.java new file mode 100644 index 00000000..64f6993e --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/SlicingKpiReqInfo.java @@ -0,0 +1,29 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingKpiReqInfo { + String id; + + String timeStamp; + + int hours; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/TotalBandwidthInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/TotalBandwidthInfo.java new file mode 100644 index 00000000..46b38afc --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/TotalBandwidthInfo.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class TotalBandwidthInfo { + + @JsonProperty("timestamp") + private String timestamp; + + @JsonProperty("total_bandwidth") + private String bandwidth; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/TrafficReqInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/TrafficReqInfo.java new file mode 100644 index 00000000..62255977 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/TrafficReqInfo.java @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class TrafficReqInfo { + String id; + + String timeStamp; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficInfo.java new file mode 100644 index 00000000..8867bdba --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficInfo.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class UsageTrafficInfo { + + @JsonProperty("service_id") + private String serviceId; + + @JsonProperty("traffic_data") + private String trafficData; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficList.java new file mode 100644 index 00000000..a3bb19d5 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UsageTrafficList.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class UsageTrafficList { + @JsonProperty("slicing_usage_traffic_list") + private List<UsageTrafficInfo> usageTrafficInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UserNumberInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UserNumberInfo.java new file mode 100644 index 00000000..c0c2e689 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/monitor/UserNumberInfo.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.monitor; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class UserNumberInfo { + + @JsonProperty("timestamp") + private String timeStamp; + + @JsonProperty("online_users") + private String userNumber; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/AllottedResourceUsefulInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/AllottedResourceUsefulInfo.java new file mode 100644 index 00000000..32b8d685 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/AllottedResourceUsefulInfo.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class AllottedResourceUsefulInfo { + + String nsiId; + + String modelInvariantId; + + String modelVersionId; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedBusinessInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedBusinessInfo.java new file mode 100644 index 00000000..f2a90eab --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedBusinessInfo.java @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class HostedBusinessInfo { + + @JsonProperty("service_instance_id") + private String serviceInstanceId; + + @JsonProperty("service_instance_name") + private String serviceInstanceName; + + @JsonProperty("service_type") + private String serviceType; + + @JsonProperty("service_snssai") + private String environmentContext; + + @JsonProperty("orchestration_status") + private String orchestrationStatus; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiInfo.java new file mode 100644 index 00000000..0912961c --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiInfo.java @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class HostedNsiInfo { + + @JsonProperty("service_instance_id") + private String serviceInstanceId; + + @JsonProperty("service_instance_name") + private String serviceInstanceName; + + @JsonProperty("service_type") + private String serviceType; + + @JsonProperty("orchestration_status") + private String orchestrationStatus; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiList.java new file mode 100644 index 00000000..c59b5859 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/HostedNsiList.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class HostedNsiList { + + @JsonProperty("record_number") + private int recordNumber; + + @JsonProperty("hosted_nsi_list") + private List<HostedNsiInfo> hostedNsiInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/IncludedNssiInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/IncludedNssiInfo.java new file mode 100644 index 00000000..5a1c21e6 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/IncludedNssiInfo.java @@ -0,0 +1,42 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class IncludedNssiInfo { + @JsonProperty("service_instance_order") + private String serviceInstanceOrder; + + @JsonProperty("service_instance_id") + private String serviceInstanceId; + + @JsonProperty("service_instance_name") + private String serviceInstanceName; + + @JsonProperty("service_type") + private String serviceType; + + @JsonProperty("environment_context") + private String environmentContext; + + @JsonProperty("orchestration_status") + private String orchestrationStatus; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiDetailList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiDetailList.java new file mode 100644 index 00000000..1b85b5e7 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiDetailList.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NsiDetailList { + @JsonProperty("hosted_business_list") + private List<HostedBusinessInfo> hostedBusinessInfoList; + + @JsonProperty("included_nssi_list") + private List<IncludedNssiInfo> includedNssiInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiInfo.java new file mode 100644 index 00000000..b33fe839 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiInfo.java @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NsiInfo { + + @JsonProperty("nsi_id") + private String nsiId; + + @JsonProperty("nsi_name") + private String nsiName; + + @JsonProperty("nsi_type") + private String nsiType; + + @JsonProperty("nsi_orchestration_status") + private String nsiOrchestrationStatus; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiRelatedNssiInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiRelatedNssiInfo.java new file mode 100644 index 00000000..3d490dfd --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiRelatedNssiInfo.java @@ -0,0 +1,45 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NsiRelatedNssiInfo { + + @JsonProperty("an_suggest_nssi_id") + private String anSuggestNssiId; + + @JsonProperty("an_suggest_nssi_name") + private String anSuggestNssiName; + + @JsonProperty("tn_suggest_nssi_id") + private String tnSuggestNssiId; + + @JsonProperty("tn_suggest_nssi_name") + private String tnSuggestNssiName; + + @JsonProperty("cn_suggest_nssi_id") + private String cnSuggestNssiId; + + @JsonProperty("cn_suggest_nssi_name") + private String cnSuggestNssiName; + + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceInfo.java new file mode 100644 index 00000000..6f965ebc --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceInfo.java @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NsiServiceInstanceInfo { + @JsonProperty("service_instance_order") + private String serviceInstanceOrder; + + @JsonProperty("service_instance_id") + private String serviceInstanceId; + + @JsonProperty("service_instance_name") + private String serviceInstanceName; + + @JsonProperty("service_type") + private String serviceType; + + @JsonProperty("orchestration_status") + private String orchestrationStatus; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceList.java new file mode 100644 index 00000000..41ec86e8 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NsiServiceInstanceList.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NsiServiceInstanceList { + @JsonProperty("record_number") + private int recordNumber; + + @JsonProperty("nsi_service_instances") + private List<NsiServiceInstanceInfo> nsiServiceInstanceInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceInfo.java new file mode 100644 index 00000000..b0c3ced8 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceInfo.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NssiServiceInstanceInfo { + @JsonProperty("service_instance_order") + private String serviceInstanceOrder; + + @JsonProperty("service_instance_id") + private String serviceInstanceId; + + @JsonProperty("service_instance_name") + private String serviceInstanceName; + + @JsonProperty("service_type") + private String serviceType; + + @JsonProperty("environment_context") + private String environmentContext; + + @JsonProperty("orchestration_status") + private String orchestrationStatus; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceList.java new file mode 100644 index 00000000..8b658fa9 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/NssiServiceInstanceList.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NssiServiceInstanceList { + + @JsonProperty("record_number") + private int recordNumber; + + @JsonProperty("nssi_service_instances") + private List<NssiServiceInstanceInfo> nssiServiceInstanceInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationProgress.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationProgress.java new file mode 100644 index 00000000..34919889 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationProgress.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class ServiceOperationProgress { + + @JsonProperty("operation_type") + private String operationType; + + @JsonProperty("operation_progress") + private String operationProgress; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationResult.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationResult.java new file mode 100644 index 00000000..69ffdaa9 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/ServiceOperationResult.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Setter +@Getter +public class ServiceOperationResult { + + @JsonProperty("operation_id") + private String operationId; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessDetails.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessDetails.java new file mode 100644 index 00000000..15be20fa --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessDetails.java @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; +import org.onap.usecaseui.server.bean.nsmf.task.BusinessDemandInfo; +import org.onap.usecaseui.server.bean.nsmf.task.NstInfo; + +@Getter +@Setter +public class SlicingBusinessDetails { + @JsonProperty("business_demand_info") + private BusinessDemandInfo businessDemandInfo; + + @JsonProperty("nst_info") + private NstInfo nstInfo; + + @JsonProperty("nsi_info") + private NsiInfo nsiInfo; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessInfo.java new file mode 100644 index 00000000..1a1f5783 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessInfo.java @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingBusinessInfo { + + @JsonProperty("service_instance_id") + private String serviceInstanceId; + + @JsonProperty("service_instance_name") + private String serviceInstanceName; + + @JsonProperty("service_type") + private String serviceType; + + @JsonProperty("service_snssai") + private String environmentContext; + + @JsonProperty("orchestration_status") + private String orchestrationStatus; + + @JsonProperty("last_operation_type") + private String lastOperationType; + + @JsonProperty("last_operation_progress") + private String lastOperationProgress; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessList.java new file mode 100644 index 00000000..97456ea1 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SlicingBusinessList.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingBusinessList { + + @JsonProperty("record_number") + private int recordNumber; + + @JsonProperty("slicing_business_list") + private List<SlicingBusinessInfo> slicingBusinessInfoList; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SubscriberInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SubscriberInfo.java new file mode 100644 index 00000000..49cfc457 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/resource/SubscriberInfo.java @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.resource; + +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SubscriberInfo { + + String globalSubscriberId; + + String serviceType; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/BusinessDemandInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/BusinessDemandInfo.java new file mode 100644 index 00000000..9aa59f23 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/BusinessDemandInfo.java @@ -0,0 +1,65 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class BusinessDemandInfo { + + @JsonProperty("service_name") + String serviceName; + + @JsonProperty("service_snssai") + String serviceSnssai; + + @JsonProperty("exp_data_rate_dl") + String expDataRateDL; + + @JsonProperty("exp_data_rate_ul") + String expDataRateUL; + + @JsonProperty("ue_mobility_level") + String ueMobilityLevel; + + @JsonProperty("latency") + String latency; + + @JsonProperty("use_interval") + String useInterval; + + @JsonProperty("coverage_area_ta_list") + List<String> coverageAreaTaList; + + @JsonProperty("activity_factor") + String activityFactor; + + @JsonProperty("resource_sharing_level") + String resourceSharingLevel; + + @JsonProperty("area_traffic_cap_ul") + String areaTrafficCapUL; + + @JsonProperty("area_traffic_cap_dl") + String areaTrafficCapDL; + + @JsonProperty("max_number_of_ues") + String maxNumberOfUEs; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/NsiAndSubNssiInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/NsiAndSubNssiInfo.java new file mode 100644 index 00000000..5de7709b --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/NsiAndSubNssiInfo.java @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NsiAndSubNssiInfo { + + @JsonProperty("suggest_nsi_id") + String suggestNsiId; + + @JsonProperty("suggest_nsi_name") + String suggestNsiName; + + @JsonProperty("an_suggest_nssi_id") + String anSuggestNssiId; + + @JsonProperty("an_suggest_nssi_name") + String anSuggestNssiName; + + @JsonProperty("an_latency") + String anLatency; + + @JsonProperty("an_5qi") + String an5qi; + + @JsonProperty("an_coverage_area_ta_list") + List<String> anCoverageAreaTaList; + + @JsonProperty("an_script_name") + String anScriptName; + + @JsonProperty("tn_suggest_nssi_id") + String tnSuggestNssiId; + + @JsonProperty("tn_suggest_nssi_name") + String tnSuggestNssiName; + + @JsonProperty("tn_latency") + String tnLatency; + + @JsonProperty("tn_bandwidth") + String tnBandwidth; + + @JsonProperty("tn_script_name") + String tnScriptName; + + @JsonProperty("cn_suggest_nssi_id") + String cnSuggestNssiId; + + @JsonProperty("cn_suggest_nssi_name") + String cnSuggestNssiName; + + @JsonProperty("cn_service_snssai") + String cnServiceSnssai; + + @JsonProperty("cn_resource_sharing_level") + String cnResourceSharingLevel; + + @JsonProperty("cn_ue_mobility_level") + String cnUeMobilityLevel; + + @JsonProperty("cn_latency") + String cnLatency; + + @JsonProperty("cn_max_number_of_ues") + String cnMaxNumberOfUes; + + @JsonProperty("cn_activity_factor") + String cnActivityFactor; + + @JsonProperty("cn_exp_data_rate_dl") + String cnExpDataRateDl; + + @JsonProperty("cn_exp_data_rate_ul") + String cnExpDataRateUl; + + @JsonProperty("cn_area_traffic_cap_dl") + String cnAreaTrafficCapDl; + + @JsonProperty("cn_area_traffic_cap_ul") + String cnAreaTrafficCapUl; + + @JsonProperty("cn_script_name") + String cnScriptName; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/NstInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/NstInfo.java new file mode 100644 index 00000000..966e352f --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/NstInfo.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class NstInfo { + + @JsonProperty("nst_id") + String nstId; + + @JsonProperty("nst_name") + String nstName; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskAuditInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskAuditInfo.java new file mode 100644 index 00000000..c4901ee9 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskAuditInfo.java @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.alibaba.fastjson.annotation.JSONField; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingTaskAuditInfo { + //JSONField指定转成Json串时的格式和顺序 + //JsonProperty 指定接受前台的相应时的接口格式 + @JSONField(name="task_id",ordinal=0) + @JsonProperty("task_id") + private String taskId; + + @JsonProperty("task_name") + private String taskName; + + @JsonProperty("create_time") + private String createTime; + + @JsonProperty("processing_status") + private String processingStatus; + + @JsonProperty("business_demand_info") + private BusinessDemandInfo businessDemandInfo; + + @JsonProperty("nst_info") + private NstInfo nstInfo; + + @JsonProperty("nsi_nssi_info") + private NsiAndSubNssiInfo nsiAndSubNssiInfo; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationInfo.java new file mode 100644 index 00000000..948e7875 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationInfo.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingTaskCreationInfo { + + @JsonProperty("task_id") + private String taskId; + + @JsonProperty("task_name") + private String taskName; + + @JsonProperty("create_time") + private String createTime; + + @JsonProperty("processing_status") + private String processingStatus; + + @JsonProperty("business_demand_info") + private BusinessDemandInfo businessDemandInfo; + + @JsonProperty("nst_info") + private NstInfo nstInfo; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationProgress.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationProgress.java new file mode 100644 index 00000000..c704a085 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskCreationProgress.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingTaskCreationProgress { + @JsonProperty("an_progress") + private String anProgress; + + @JsonProperty("an_status") + private String anStatus; + + @JsonProperty("tn_progress") + private String tnProgress; + + @JsonProperty("tn_status") + private String tnStatus; + + @JsonProperty("cn_progress") + private String cnProgress; + + @JsonProperty("cn_status") + private String cnStatus; + +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskInfo.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskInfo.java new file mode 100644 index 00000000..74bca2a0 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskInfo.java @@ -0,0 +1,43 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingTaskInfo { + + @JsonProperty("task_id") + private String taskId; + + @JsonProperty("task_name") + private String name; + + @JsonProperty("service_snssai") + private String serviceSnssai; + + @JsonProperty("service_type") + private String serviceType; + + @JsonProperty("create_time") + private String createTime; + + @JsonProperty("processing_status") + private String status; +} diff --git a/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskList.java b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskList.java new file mode 100644 index 00000000..3439beb8 --- /dev/null +++ b/server/src/main/java/org/onap/usecaseui/server/bean/nsmf/task/SlicingTaskList.java @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2019 CMCC, Inc. and others. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.onap.usecaseui.server.bean.nsmf.task; + +import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; +import lombok.Getter; +import lombok.Setter; + +@Getter +@Setter +public class SlicingTaskList { + + @JsonProperty("record_number") + private int recordNumber; + + @JsonProperty("slicing_task_list") + private List<SlicingTaskInfo> slicingTaskInfoList; +} |