Code Review
/
policy
/
models.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add extra authorative TOSCA concepts
[policy/models.git]
/
models-tosca
/
src
/
main
/
java
/
org
/
onap
/
policy
/
models
/
tosca
/
authorative
/
concepts
/
ToscaSchemaDefinition.java
diff --git
a/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntrySchema.java
b/models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java
similarity index 83%
rename from
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntrySchema.java
rename to
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java
index
352dfa7
..
758711c
100644
(file)
--- a/
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaEntrySchema.java
+++ b/
models-tosca/src/main/java/org/onap/policy/models/tosca/authorative/concepts/ToscaSchemaDefinition.java
@@
-23,23
+23,25
@@
package org.onap.policy.models.tosca.authorative.concepts;
package org.onap.policy.models.tosca.authorative.concepts;
+import com.google.gson.annotations.SerializedName;
+import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;
/**
import java.util.List;
import lombok.Data;
/**
- * Class to represent TOSCA
entry
schema matching input/output from/to client.
+ * Class to represent TOSCA schema matching input/output from/to client.
*
* @author Chenfei Gao (cgao@research.att.com)
*/
@Data
*
* @author Chenfei Gao (cgao@research.att.com)
*/
@Data
-public class Tosca
EntrySchema
{
+public class Tosca
SchemaDefinition
{
private String name;
private String name;
-
private String type;
private String type;
+ @ApiModelProperty(name = "type_version")
+ @SerializedName("type_version")
private String typeVersion;
private String description;
private String typeVersion;
private String description;
-
private List<ToscaConstraint> constraints;
}
private List<ToscaConstraint> constraints;
}