Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Rename artifacts in A1 controller"
[nonrtric.git]
/
policy-agent
/
src
/
main
/
java
/
org
/
oransc
/
policyagent
/
controllers
/
RicInfo.java
diff --git
a/policy-agent/src/main/java/org/oransc/policyagent/controllers/RicInfo.java
b/policy-agent/src/main/java/org/oransc/policyagent/controllers/RicInfo.java
index
db9a4e5
..
c75270e
100644
(file)
--- a/
policy-agent/src/main/java/org/oransc/policyagent/controllers/RicInfo.java
+++ b/
policy-agent/src/main/java/org/oransc/policyagent/controllers/RicInfo.java
@@
-20,18
+20,32
@@
package org.oransc.policyagent.controllers;
package org.oransc.policyagent.controllers;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
import java.util.Collection;
import org.immutables.gson.Gson;
import java.util.Collection;
import org.immutables.gson.Gson;
-import org.immutables.value.Value;
-@Value.Immutable
@Gson.TypeAdapters
@Gson.TypeAdapters
-interface RicInfo {
+@ApiModel(value = "RicInfo")
+class RicInfo {
+ @ApiModelProperty(value = "identity of the ric")
+ public final String ricName;
+
+ @ApiModelProperty(value = "O1 identities for managed entities")
+ public final Collection<String> managedElementIds;
- public String name();
+ @ApiModelProperty(value = "supported policy types")
+ public final Collection<String> policyTypes;
- public Collection<String> nodeNames();
+ @ApiModelProperty(value = "state info")
+ public final String state;
- public Collection<String> policyTypes();
+ RicInfo(String name, Collection<String> managedElementIds, Collection<String> policyTypes, String state) {
+ this.ricName = name;
+ this.managedElementIds = managedElementIds;
+ this.policyTypes = policyTypes;
+ this.state = state;
+ }
}
}