\r
import com.fasterxml.jackson.annotation.JsonIgnore\r
import com.fasterxml.jackson.annotation.JsonProperty\r
+import com.fasterxml.jackson.annotation.JsonPropertyOrder\r
import com.fasterxml.jackson.databind.JsonNode\r
import io.swagger.annotations.ApiModelProperty\r
\r
@get:JsonIgnore\r
var id: String? = null\r
var description: String? = null\r
+ var required: Boolean? = null\r
lateinit var type: String\r
@JsonProperty("default")\r
var defaultValue: JsonNode? = null\r
var status: String? = null\r
+ var constraints: MutableList<ConstraintClause>? = null\r
@JsonProperty("entry_schema")\r
- var entrySchema: String? = null\r
+ var entrySchema: EntrySchema? = null\r
}\r
\r
/*\r
A TOSCA Service Template (YAML) document contains element definitions of building blocks for cloud application, or complete models of cloud applications. This section describes the top-level structural elements (TOSCA keynames) along with their grammars, which are allowed to appear in a TOSCA Service Template document.\r
*/\r
\r
-class ServiceTemplate {\r
+@JsonPropertyOrder(value = ["toscaDefinitionsVersion", "description", "metadata", "imports", "topologyTemplate"])\r
+class ServiceTemplate : Cloneable {\r
@get:JsonIgnore\r
var id: String? = null\r
@get:JsonProperty("tosca_definitions_version")\r
var policyTypes: MutableMap<String, PolicyType>? = null\r
@get:JsonProperty("topology_template")\r
var topologyTemplate: TopologyTemplate? = null\r
+\r
+ override public fun clone(): ServiceTemplate {\r
+ return super.clone() as ServiceTemplate\r
+ }\r
}\r
\r
class ToscaMetaData {\r