Code Review
/
nonrtric.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add unit tests for SdncOscA1Client
[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
3d59e68
..
73103b8
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
@@
-17,22
+17,31
@@
* limitations under the License.
* ========================LICENSE_END===================================
*/
* limitations under the License.
* ========================LICENSE_END===================================
*/
+
package org.oransc.policyagent.controllers;
package org.oransc.policyagent.controllers;
-import com.google.gson.annotations.SerializedName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
-import java.util.
Vector
;
+import java.util.
Collection
;
import org.immutables.gson.Gson;
import org.immutables.gson.Gson;
-import org.immutables.value.Value;
-@Value.Immutable
@Gson.TypeAdapters
@Gson.TypeAdapters
-public interface RicInfo {
+@ApiModel(value = "RicInfo")
+class RicInfo {
+ @ApiModelProperty(value = "identity of the ric")
+ public final String name;
+
+ @ApiModelProperty(value = "O1 identities for managed entities")
+ public final Collection<String> managedElementIds;
- @
SerializedName("name
")
- public
String name()
;
+ @
ApiModelProperty(value = "supported policy types
")
+ public
final Collection<String> policyTypes
;
- @SerializedName("nodeNames")
- public Vector<String> managedElementIds();
+ RicInfo(String name, Collection<String> managedElementIds, Collection<String> policyTypes) {
+ this.name = name;
+ this.managedElementIds = managedElementIds;
+ this.policyTypes = policyTypes;
+ }
}
}