Commit 9a82a58c authored by Spiros Koulouzis's avatar Spiros Koulouzis

changed types

parent 8e781faa
...@@ -4,7 +4,6 @@ import java.util.Objects; ...@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap; import java.util.HashMap;
...@@ -19,9 +18,9 @@ import org.springframework.data.annotation.Id; ...@@ -19,9 +18,9 @@ import org.springframework.data.annotation.Id;
* Credentials * Credentials
*/ */
@Validated @Validated
@JsonInclude(JsonInclude.Include.NON_NULL) @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class Credentials {
public class Credentials {
/** /**
* @return the id * @return the id
*/ */
...@@ -39,6 +38,7 @@ public class Credentials { ...@@ -39,6 +38,7 @@ public class Credentials {
@Id @Id
@JsonIgnore @JsonIgnore
private String id; private String id;
@JsonProperty("protocol") @JsonProperty("protocol")
private String protocol = null; private String protocol = null;
...@@ -65,12 +65,11 @@ public class Credentials { ...@@ -65,12 +65,11 @@ public class Credentials {
/** /**
* Get protocol * Get protocol
*
* @return protocol * @return protocol
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getProtocol() { public String getProtocol() {
return protocol; return protocol;
} }
...@@ -86,12 +85,11 @@ public class Credentials { ...@@ -86,12 +85,11 @@ public class Credentials {
/** /**
* Get tokenType * Get tokenType
*
* @return tokenType * @return tokenType
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getTokenType() { public String getTokenType() {
return tokenType; return tokenType;
} }
...@@ -107,12 +105,11 @@ public class Credentials { ...@@ -107,12 +105,11 @@ public class Credentials {
/** /**
* Get token * Get token
*
* @return token * @return token
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getToken() { public String getToken() {
return token; return token;
} }
...@@ -136,12 +133,11 @@ public class Credentials { ...@@ -136,12 +133,11 @@ public class Credentials {
/** /**
* Get keys * Get keys
*
* @return keys * @return keys
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, String> getKeys() { public Map<String, String> getKeys() {
return keys; return keys;
} }
...@@ -157,12 +153,11 @@ public class Credentials { ...@@ -157,12 +153,11 @@ public class Credentials {
/** /**
* Get user * Get user
*
* @return user * @return user
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getUser() { public String getUser() {
return user; return user;
} }
...@@ -178,12 +173,11 @@ public class Credentials { ...@@ -178,12 +173,11 @@ public class Credentials {
/** /**
* Get cloudProviderName * Get cloudProviderName
*
* @return cloudProviderName * @return cloudProviderName
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getCloudProviderName() { public String getCloudProviderName() {
return cloudProviderName; return cloudProviderName;
} }
...@@ -192,6 +186,7 @@ public class Credentials { ...@@ -192,6 +186,7 @@ public class Credentials {
this.cloudProviderName = cloudProviderName; this.cloudProviderName = cloudProviderName;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -201,12 +196,12 @@ public class Credentials { ...@@ -201,12 +196,12 @@ public class Credentials {
return false; return false;
} }
Credentials credentials = (Credentials) o; Credentials credentials = (Credentials) o;
return Objects.equals(this.protocol, credentials.protocol) return Objects.equals(this.protocol, credentials.protocol) &&
&& Objects.equals(this.tokenType, credentials.tokenType) Objects.equals(this.tokenType, credentials.tokenType) &&
&& Objects.equals(this.token, credentials.token) Objects.equals(this.token, credentials.token) &&
&& Objects.equals(this.keys, credentials.keys) Objects.equals(this.keys, credentials.keys) &&
&& Objects.equals(this.user, credentials.user) Objects.equals(this.user, credentials.user) &&
&& Objects.equals(this.cloudProviderName, credentials.cloudProviderName); Objects.equals(this.cloudProviderName, credentials.cloudProviderName);
} }
@Override @Override
...@@ -240,3 +235,4 @@ public class Credentials { ...@@ -240,3 +235,4 @@ public class Credentials {
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }
...@@ -4,7 +4,6 @@ import java.util.Objects; ...@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -20,9 +19,9 @@ import org.springframework.data.annotation.Id; ...@@ -20,9 +19,9 @@ import org.springframework.data.annotation.Id;
* NodeTemplate * NodeTemplate
*/ */
@Validated @Validated
@JsonInclude(JsonInclude.Include.NON_NULL) @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class NodeTemplate {
public class NodeTemplate {
/** /**
* @return the id * @return the id
*/ */
...@@ -40,6 +39,7 @@ public class NodeTemplate { ...@@ -40,6 +39,7 @@ public class NodeTemplate {
@Id @Id
@JsonIgnore @JsonIgnore
private String id; private String id;
@JsonProperty("derived_from") @JsonProperty("derived_from")
private String derivedFrom = null; private String derivedFrom = null;
...@@ -84,12 +84,11 @@ public class NodeTemplate { ...@@ -84,12 +84,11 @@ public class NodeTemplate {
/** /**
* Get derivedFrom * Get derivedFrom
*
* @return derivedFrom * @return derivedFrom
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getDerivedFrom() { public String getDerivedFrom() {
return derivedFrom; return derivedFrom;
} }
...@@ -113,12 +112,11 @@ public class NodeTemplate { ...@@ -113,12 +112,11 @@ public class NodeTemplate {
/** /**
* Get properties * Get properties
*
* @return properties * @return properties
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getProperties() { public Map<String, Object> getProperties() {
return properties; return properties;
} }
...@@ -142,10 +140,8 @@ public class NodeTemplate { ...@@ -142,10 +140,8 @@ public class NodeTemplate {
/** /**
* Get requirements * Get requirements
*
* @return requirements * @return requirements
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Valid @Valid
...@@ -173,12 +169,11 @@ public class NodeTemplate { ...@@ -173,12 +169,11 @@ public class NodeTemplate {
/** /**
* Get interfaces * Get interfaces
*
* @return interfaces * @return interfaces
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getInterfaces() { public Map<String, Object> getInterfaces() {
return interfaces; return interfaces;
} }
...@@ -202,12 +197,11 @@ public class NodeTemplate { ...@@ -202,12 +197,11 @@ public class NodeTemplate {
/** /**
* Get capabilities * Get capabilities
*
* @return capabilities * @return capabilities
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getCapabilities() { public Map<String, Object> getCapabilities() {
return capabilities; return capabilities;
} }
...@@ -223,12 +217,11 @@ public class NodeTemplate { ...@@ -223,12 +217,11 @@ public class NodeTemplate {
/** /**
* Get type * Get type
*
* @return type * @return type
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getType() { public String getType() {
return type; return type;
} }
...@@ -244,12 +237,11 @@ public class NodeTemplate { ...@@ -244,12 +237,11 @@ public class NodeTemplate {
/** /**
* Get description * Get description
*
* @return description * @return description
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getDescription() { public String getDescription() {
return description; return description;
} }
...@@ -273,12 +265,11 @@ public class NodeTemplate { ...@@ -273,12 +265,11 @@ public class NodeTemplate {
/** /**
* Get directives * Get directives
*
* @return directives * @return directives
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public List<String> getDirectives() { public List<String> getDirectives() {
return directives; return directives;
} }
...@@ -302,12 +293,11 @@ public class NodeTemplate { ...@@ -302,12 +293,11 @@ public class NodeTemplate {
/** /**
* Get attributes * Get attributes
*
* @return attributes * @return attributes
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getAttributes() { public Map<String, Object> getAttributes() {
return attributes; return attributes;
} }
...@@ -331,12 +321,11 @@ public class NodeTemplate { ...@@ -331,12 +321,11 @@ public class NodeTemplate {
/** /**
* Get artifacts * Get artifacts
*
* @return artifacts * @return artifacts
* **/
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getArtifacts() { public Map<String, Object> getArtifacts() {
return artifacts; return artifacts;
} }
...@@ -345,6 +334,7 @@ public class NodeTemplate { ...@@ -345,6 +334,7 @@ public class NodeTemplate {
this.artifacts = artifacts; this.artifacts = artifacts;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -354,16 +344,16 @@ public class NodeTemplate { ...@@ -354,16 +344,16 @@ public class NodeTemplate {
return false; return false;
} }
NodeTemplate nodeTemplate = (NodeTemplate) o; NodeTemplate nodeTemplate = (NodeTemplate) o;
return Objects.equals(this.derivedFrom, nodeTemplate.derivedFrom) return Objects.equals(this.derivedFrom, nodeTemplate.derivedFrom) &&
&& Objects.equals(this.properties, nodeTemplate.properties) Objects.equals(this.properties, nodeTemplate.properties) &&
&& Objects.equals(this.requirements, nodeTemplate.requirements) Objects.equals(this.requirements, nodeTemplate.requirements) &&
&& Objects.equals(this.interfaces, nodeTemplate.interfaces) Objects.equals(this.interfaces, nodeTemplate.interfaces) &&
&& Objects.equals(this.capabilities, nodeTemplate.capabilities) Objects.equals(this.capabilities, nodeTemplate.capabilities) &&
&& Objects.equals(this.type, nodeTemplate.type) Objects.equals(this.type, nodeTemplate.type) &&
&& Objects.equals(this.description, nodeTemplate.description) Objects.equals(this.description, nodeTemplate.description) &&
&& Objects.equals(this.directives, nodeTemplate.directives) Objects.equals(this.directives, nodeTemplate.directives) &&
&& Objects.equals(this.attributes, nodeTemplate.attributes) Objects.equals(this.attributes, nodeTemplate.attributes) &&
&& Objects.equals(this.artifacts, nodeTemplate.artifacts); Objects.equals(this.artifacts, nodeTemplate.artifacts);
} }
@Override @Override
...@@ -401,3 +391,4 @@ public class NodeTemplate { ...@@ -401,3 +391,4 @@ public class NodeTemplate {
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }
...@@ -4,7 +4,6 @@ import java.util.Objects; ...@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -20,7 +19,8 @@ import org.springframework.data.annotation.Id; ...@@ -20,7 +19,8 @@ import org.springframework.data.annotation.Id;
* TopologyTemplate * TopologyTemplate
*/ */
@Validated @Validated
@JsonInclude(JsonInclude.Include.NON_NULL) @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class TopologyTemplate { public class TopologyTemplate {
/** /**
* @return the id * @return the id
...@@ -39,12 +39,12 @@ public class TopologyTemplate { ...@@ -39,12 +39,12 @@ public class TopologyTemplate {
@Id @Id
@JsonIgnore @JsonIgnore
private String id; private String id;
@JsonProperty("description") @JsonProperty("description")
private String description = null; private String description = null;
@JsonProperty("inputs") @JsonProperty("inputs")
@Valid private String inputs = null;
private List<Map<String, Object>> inputs = null;
@JsonProperty("node_templates") @JsonProperty("node_templates")
@Valid @Valid
...@@ -55,20 +55,17 @@ public class TopologyTemplate { ...@@ -55,20 +55,17 @@ public class TopologyTemplate {
private Map<String, Object> relationshipTemplates = null; private Map<String, Object> relationshipTemplates = null;
@JsonProperty("outputs") @JsonProperty("outputs")
@Valid private String outputs = null;
private List<Map<String, Object>> outputs = null;
@JsonProperty("groups") @JsonProperty("groups")
@Valid private String groups = null;
private Map<String, Object> groups = null;
@JsonProperty("substitution_mappings") @JsonProperty("substitution_mappings")
@Valid private String substitutionMappings = null;
private Map<String, Object> substitutionMappings = null;
@JsonProperty("policies") @JsonProperty("policies")
@Valid @Valid
private List<Map<String, Object>> policies = null; private List<String> policies = null;
public TopologyTemplate description(String description) { public TopologyTemplate description(String description) {
this.description = description; this.description = description;
...@@ -90,32 +87,23 @@ public class TopologyTemplate { ...@@ -90,32 +87,23 @@ public class TopologyTemplate {
this.description = description; this.description = description;
} }
public TopologyTemplate inputs(List<Map<String, Object>> inputs) { public TopologyTemplate inputs(String inputs) {
this.inputs = inputs; this.inputs = inputs;
return this; return this;
} }
public TopologyTemplate addInputsItem(Map<String, Object> inputsItem) {
if (this.inputs == null) {
this.inputs = new ArrayList<Map<String, Object>>();
}
this.inputs.add(inputsItem);
return this;
}
/** /**
* Get inputs * Get inputs
* @return inputs * @return inputs
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Valid
public List<Map<String, Object>> getInputs() { public String getInputs() {
return inputs; return inputs;
} }
public void setInputs(List<Map<String, Object>> inputs) { public void setInputs(String inputs) {
this.inputs = inputs; this.inputs = inputs;
} }
...@@ -176,48 +164,31 @@ public class TopologyTemplate { ...@@ -176,48 +164,31 @@ public class TopologyTemplate {
this.relationshipTemplates = relationshipTemplates; this.relationshipTemplates = relationshipTemplates;
} }
public TopologyTemplate outputs(List<Map<String, Object>> outputs) { public TopologyTemplate outputs(String outputs) {
this.outputs = outputs; this.outputs = outputs;
return this; return this;
} }
public TopologyTemplate addOutputsItem(Map<String, Object> outputsItem) {
if (this.outputs == null) {
this.outputs = new ArrayList<Map<String, Object>>();
}
this.outputs.add(outputsItem);
return this;
}
/** /**
* Get outputs * Get outputs
* @return outputs * @return outputs
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Valid
public List<Map<String, Object>> getOutputs() { public String getOutputs() {
return outputs; return outputs;
} }
public void setOutputs(List<Map<String, Object>> outputs) { public void setOutputs(String outputs) {
this.outputs = outputs; this.outputs = outputs;
} }
public TopologyTemplate groups(Map<String, Object> groups) { public TopologyTemplate groups(String groups) {
this.groups = groups; this.groups = groups;
return this; return this;
} }
public TopologyTemplate putGroupsItem(String key, Object groupsItem) {
if (this.groups == null) {
this.groups = new HashMap<String, Object>();
}
this.groups.put(key, groupsItem);
return this;
}
/** /**
* Get groups * Get groups
* @return groups * @return groups
...@@ -225,27 +196,19 @@ public class TopologyTemplate { ...@@ -225,27 +196,19 @@ public class TopologyTemplate {
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getGroups() { public String getGroups() {
return groups; return groups;
} }
public void setGroups(Map<String, Object> groups) { public void setGroups(String groups) {
this.groups = groups; this.groups = groups;
} }
public TopologyTemplate substitutionMappings(Map<String, Object> substitutionMappings) { public TopologyTemplate substitutionMappings(String substitutionMappings) {
this.substitutionMappings = substitutionMappings; this.substitutionMappings = substitutionMappings;
return this; return this;
} }
public TopologyTemplate putSubstitutionMappingsItem(String key, Object substitutionMappingsItem) {
if (this.substitutionMappings == null) {
this.substitutionMappings = new HashMap<String, Object>();
}
this.substitutionMappings.put(key, substitutionMappingsItem);
return this;
}
/** /**
* Get substitutionMappings * Get substitutionMappings
* @return substitutionMappings * @return substitutionMappings
...@@ -253,22 +216,22 @@ public class TopologyTemplate { ...@@ -253,22 +216,22 @@ public class TopologyTemplate {
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getSubstitutionMappings() { public String getSubstitutionMappings() {
return substitutionMappings; return substitutionMappings;
} }
public void setSubstitutionMappings(Map<String, Object> substitutionMappings) { public void setSubstitutionMappings(String substitutionMappings) {
this.substitutionMappings = substitutionMappings; this.substitutionMappings = substitutionMappings;
} }
public TopologyTemplate policies(List<Map<String, Object>> policies) { public TopologyTemplate policies(List<String> policies) {
this.policies = policies; this.policies = policies;
return this; return this;
} }
public TopologyTemplate addPoliciesItem(Map<String, Object> policiesItem) { public TopologyTemplate addPoliciesItem(String policiesItem) {
if (this.policies == null) { if (this.policies == null) {
this.policies = new ArrayList<Map<String, Object>>(); this.policies = new ArrayList<String>();
} }
this.policies.add(policiesItem); this.policies.add(policiesItem);
return this; return this;
...@@ -280,13 +243,12 @@ public class TopologyTemplate { ...@@ -280,13 +243,12 @@ public class TopologyTemplate {
**/ **/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Valid
public List<Map<String, Object>> getPolicies() { public List<String> getPolicies() {
return policies; return policies;
} }
public void setPolicies(List<Map<String, Object>> policies) { public void setPolicies(List<String> policies) {
this.policies = policies; this.policies = policies;
} }
......
...@@ -4,7 +4,6 @@ import java.util.Objects; ...@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList; import java.util.ArrayList;
...@@ -20,8 +19,10 @@ import org.springframework.data.annotation.Id; ...@@ -20,8 +19,10 @@ import org.springframework.data.annotation.Id;
* ToscaTemplate * ToscaTemplate
*/ */
@Validated @Validated
@JsonInclude(JsonInclude.Include.NON_NULL) @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class ToscaTemplate { public class ToscaTemplate {
/** /**
* @return the id * @return the id
*/ */
...@@ -39,6 +40,7 @@ public class ToscaTemplate { ...@@ -39,6 +40,7 @@ public class ToscaTemplate {
@Id @Id
@JsonIgnore @JsonIgnore
private String id; private String id;
@JsonProperty("tosca_definitions_version") @JsonProperty("tosca_definitions_version")
private String toscaDefinitionsVersion = null; private String toscaDefinitionsVersion = null;
...@@ -115,11 +117,12 @@ public class ToscaTemplate { ...@@ -115,11 +117,12 @@ public class ToscaTemplate {
/** /**
* Get toscaDefinitionsVersion * Get toscaDefinitionsVersion
*
* @return toscaDefinitionsVersion * @return toscaDefinitionsVersion
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getToscaDefinitionsVersion() { public String getToscaDefinitionsVersion() {
return toscaDefinitionsVersion; return toscaDefinitionsVersion;
} }
...@@ -135,11 +138,12 @@ public class ToscaTemplate { ...@@ -135,11 +138,12 @@ public class ToscaTemplate {
/** /**
* Get toscaDefaultNamespace * Get toscaDefaultNamespace
*
* @return toscaDefaultNamespace * @return toscaDefaultNamespace
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getToscaDefaultNamespace() { public String getToscaDefaultNamespace() {
return toscaDefaultNamespace; return toscaDefaultNamespace;
} }
...@@ -155,11 +159,12 @@ public class ToscaTemplate { ...@@ -155,11 +159,12 @@ public class ToscaTemplate {
/** /**
* Get templateName * Get templateName
*
* @return templateName * @return templateName
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getTemplateName() { public String getTemplateName() {
return templateName; return templateName;
} }
...@@ -175,8 +180,10 @@ public class ToscaTemplate { ...@@ -175,8 +180,10 @@ public class ToscaTemplate {
/** /**
* Get topologyTemplate * Get topologyTemplate
*
* @return topologyTemplate * @return topologyTemplate
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Valid @Valid
...@@ -196,11 +203,12 @@ public class ToscaTemplate { ...@@ -196,11 +203,12 @@ public class ToscaTemplate {
/** /**
* Get templateAuthor * Get templateAuthor
*
* @return templateAuthor * @return templateAuthor
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getTemplateAuthor() { public String getTemplateAuthor() {
return templateAuthor; return templateAuthor;
} }
...@@ -216,11 +224,12 @@ public class ToscaTemplate { ...@@ -216,11 +224,12 @@ public class ToscaTemplate {
/** /**
* Get templateVersion * Get templateVersion
*
* @return templateVersion * @return templateVersion
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getTemplateVersion() { public String getTemplateVersion() {
return templateVersion; return templateVersion;
} }
...@@ -236,11 +245,12 @@ public class ToscaTemplate { ...@@ -236,11 +245,12 @@ public class ToscaTemplate {
/** /**
* Get description * Get description
*
* @return description * @return description
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public String getDescription() { public String getDescription() {
return description; return description;
} }
...@@ -264,8 +274,10 @@ public class ToscaTemplate { ...@@ -264,8 +274,10 @@ public class ToscaTemplate {
/** /**
* Get imports * Get imports
*
* @return imports * @return imports
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Valid @Valid
...@@ -293,11 +305,12 @@ public class ToscaTemplate { ...@@ -293,11 +305,12 @@ public class ToscaTemplate {
/** /**
* Get dslDefinitions * Get dslDefinitions
*
* @return dslDefinitions * @return dslDefinitions
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getDslDefinitions() { public Map<String, Object> getDslDefinitions() {
return dslDefinitions; return dslDefinitions;
} }
...@@ -321,11 +334,12 @@ public class ToscaTemplate { ...@@ -321,11 +334,12 @@ public class ToscaTemplate {
/** /**
* Get nodeTypes * Get nodeTypes
*
* @return nodeTypes * @return nodeTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getNodeTypes() { public Map<String, Object> getNodeTypes() {
return nodeTypes; return nodeTypes;
} }
...@@ -349,11 +363,12 @@ public class ToscaTemplate { ...@@ -349,11 +363,12 @@ public class ToscaTemplate {
/** /**
* Get relationshipTypes * Get relationshipTypes
*
* @return relationshipTypes * @return relationshipTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getRelationshipTypes() { public Map<String, Object> getRelationshipTypes() {
return relationshipTypes; return relationshipTypes;
} }
...@@ -377,11 +392,12 @@ public class ToscaTemplate { ...@@ -377,11 +392,12 @@ public class ToscaTemplate {
/** /**
* Get relationshipTemplates * Get relationshipTemplates
*
* @return relationshipTemplates * @return relationshipTemplates
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getRelationshipTemplates() { public Map<String, Object> getRelationshipTemplates() {
return relationshipTemplates; return relationshipTemplates;
} }
...@@ -405,11 +421,12 @@ public class ToscaTemplate { ...@@ -405,11 +421,12 @@ public class ToscaTemplate {
/** /**
* Get capabilityTypes * Get capabilityTypes
*
* @return capabilityTypes * @return capabilityTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getCapabilityTypes() { public Map<String, Object> getCapabilityTypes() {
return capabilityTypes; return capabilityTypes;
} }
...@@ -433,11 +450,12 @@ public class ToscaTemplate { ...@@ -433,11 +450,12 @@ public class ToscaTemplate {
/** /**
* Get artifactTypes * Get artifactTypes
*
* @return artifactTypes * @return artifactTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getArtifactTypes() { public Map<String, Object> getArtifactTypes() {
return artifactTypes; return artifactTypes;
} }
...@@ -461,11 +479,12 @@ public class ToscaTemplate { ...@@ -461,11 +479,12 @@ public class ToscaTemplate {
/** /**
* Get dataTypes * Get dataTypes
*
* @return dataTypes * @return dataTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getDataTypes() { public Map<String, Object> getDataTypes() {
return dataTypes; return dataTypes;
} }
...@@ -489,11 +508,12 @@ public class ToscaTemplate { ...@@ -489,11 +508,12 @@ public class ToscaTemplate {
/** /**
* Get interfaceTypes * Get interfaceTypes
*
* @return interfaceTypes * @return interfaceTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getInterfaceTypes() { public Map<String, Object> getInterfaceTypes() {
return interfaceTypes; return interfaceTypes;
} }
...@@ -517,11 +537,12 @@ public class ToscaTemplate { ...@@ -517,11 +537,12 @@ public class ToscaTemplate {
/** /**
* Get policyTypes * Get policyTypes
*
* @return policyTypes * @return policyTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, String> getPolicyTypes() { public Map<String, String> getPolicyTypes() {
return policyTypes; return policyTypes;
} }
...@@ -545,11 +566,12 @@ public class ToscaTemplate { ...@@ -545,11 +566,12 @@ public class ToscaTemplate {
/** /**
* Get groupTypes * Get groupTypes
*
* @return groupTypes * @return groupTypes
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getGroupTypes() { public Map<String, Object> getGroupTypes() {
return groupTypes; return groupTypes;
} }
...@@ -573,11 +595,12 @@ public class ToscaTemplate { ...@@ -573,11 +595,12 @@ public class ToscaTemplate {
/** /**
* Get repositories * Get repositories
*
* @return repositories * @return repositories
**/ *
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
public Map<String, Object> getRepositories() { public Map<String, Object> getRepositories() {
return repositories; return repositories;
} }
...@@ -586,7 +609,6 @@ public class ToscaTemplate { ...@@ -586,7 +609,6 @@ public class ToscaTemplate {
this.repositories = repositories; this.repositories = repositories;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -596,25 +618,25 @@ public class ToscaTemplate { ...@@ -596,25 +618,25 @@ public class ToscaTemplate {
return false; return false;
} }
ToscaTemplate toscaTemplate = (ToscaTemplate) o; ToscaTemplate toscaTemplate = (ToscaTemplate) o;
return Objects.equals(this.toscaDefinitionsVersion, toscaTemplate.toscaDefinitionsVersion) && return Objects.equals(this.toscaDefinitionsVersion, toscaTemplate.toscaDefinitionsVersion)
Objects.equals(this.toscaDefaultNamespace, toscaTemplate.toscaDefaultNamespace) && && Objects.equals(this.toscaDefaultNamespace, toscaTemplate.toscaDefaultNamespace)
Objects.equals(this.templateName, toscaTemplate.templateName) && && Objects.equals(this.templateName, toscaTemplate.templateName)
Objects.equals(this.topologyTemplate, toscaTemplate.topologyTemplate) && && Objects.equals(this.topologyTemplate, toscaTemplate.topologyTemplate)
Objects.equals(this.templateAuthor, toscaTemplate.templateAuthor) && && Objects.equals(this.templateAuthor, toscaTemplate.templateAuthor)
Objects.equals(this.templateVersion, toscaTemplate.templateVersion) && && Objects.equals(this.templateVersion, toscaTemplate.templateVersion)
Objects.equals(this.description, toscaTemplate.description) && && Objects.equals(this.description, toscaTemplate.description)
Objects.equals(this.imports, toscaTemplate.imports) && && Objects.equals(this.imports, toscaTemplate.imports)
Objects.equals(this.dslDefinitions, toscaTemplate.dslDefinitions) && && Objects.equals(this.dslDefinitions, toscaTemplate.dslDefinitions)
Objects.equals(this.nodeTypes, toscaTemplate.nodeTypes) && && Objects.equals(this.nodeTypes, toscaTemplate.nodeTypes)
Objects.equals(this.relationshipTypes, toscaTemplate.relationshipTypes) && && Objects.equals(this.relationshipTypes, toscaTemplate.relationshipTypes)
Objects.equals(this.relationshipTemplates, toscaTemplate.relationshipTemplates) && && Objects.equals(this.relationshipTemplates, toscaTemplate.relationshipTemplates)
Objects.equals(this.capabilityTypes, toscaTemplate.capabilityTypes) && && Objects.equals(this.capabilityTypes, toscaTemplate.capabilityTypes)
Objects.equals(this.artifactTypes, toscaTemplate.artifactTypes) && && Objects.equals(this.artifactTypes, toscaTemplate.artifactTypes)
Objects.equals(this.dataTypes, toscaTemplate.dataTypes) && && Objects.equals(this.dataTypes, toscaTemplate.dataTypes)
Objects.equals(this.interfaceTypes, toscaTemplate.interfaceTypes) && && Objects.equals(this.interfaceTypes, toscaTemplate.interfaceTypes)
Objects.equals(this.policyTypes, toscaTemplate.policyTypes) && && Objects.equals(this.policyTypes, toscaTemplate.policyTypes)
Objects.equals(this.groupTypes, toscaTemplate.groupTypes) && && Objects.equals(this.groupTypes, toscaTemplate.groupTypes)
Objects.equals(this.repositories, toscaTemplate.repositories); && Objects.equals(this.repositories, toscaTemplate.repositories);
} }
@Override @Override
...@@ -661,4 +683,3 @@ public class ToscaTemplate { ...@@ -661,4 +683,3 @@ public class ToscaTemplate {
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }
package nl.uva.sne.drip.model; package nl.uva.sne.drip.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.Objects; import java.util.Objects;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.constraints.*; import javax.validation.constraints.*;
import org.springframework.data.annotation.Id;
/** /**
* User * User
*/ */
@Validated @Validated
@JsonInclude(JsonInclude.Include.NON_NULL) @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class User {
/**
* @return the id
*/
public String getId() {
return id;
}
/** public class User {
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
@Id
@JsonIgnore
private String id;
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
...@@ -69,3 +49,4 @@ public class User { ...@@ -69,3 +49,4 @@ public class User {
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }
...@@ -6,21 +6,21 @@ ...@@ -6,21 +6,21 @@
properties: properties:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
requirements: requirements:
type: "array" type: "array"
items: items:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
interfaces: interfaces:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
capabilities: capabilities:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
type: type:
type: "string" type: "string"
description: description:
...@@ -32,11 +32,11 @@ ...@@ -32,11 +32,11 @@
attributes: attributes:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
artifacts: artifacts:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
......
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
description: description:
type: "string" type: "string"
inputs: inputs:
type: string
additionalProperties:
type: object type: object
additionalProperties:
type: string
node_templates: node_templates:
type: object type: object
additionalProperties: additionalProperties:
...@@ -14,22 +14,22 @@ ...@@ -14,22 +14,22 @@
relationship_templates: relationship_templates:
type: object type: object
additionalProperties: additionalProperties:
type: object
outputs:
type: string type: string
additionalProperties: outputs:
type: object type: object
groups:
type: string
additionalProperties: additionalProperties:
type: object
substitution_mappings:
type: string type: string
groups:
type: object
additionalProperties: additionalProperties:
type: string
substitution_mappings:
type: object type: object
additionalProperties:
type: string
policies: policies:
type: "array" type: "array"
items: items:
type: string
additionalProperties:
type: object type: object
additionalProperties:
type: string
...@@ -20,39 +20,39 @@ ...@@ -20,39 +20,39 @@
items: items:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
dsl_definitions: dsl_definitions:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
node_types: node_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
relationship_types: relationship_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
relationship_templates: relationship_templates:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
capability_types: capability_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
artifact_types: artifact_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
data_types: data_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
interface_types: interface_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
policy_types: policy_types:
type: object type: object
additionalProperties: additionalProperties:
...@@ -60,9 +60,9 @@ ...@@ -60,9 +60,9 @@
group_types: group_types:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
repositories: repositories:
type: object type: object
additionalProperties: additionalProperties:
type: object type: string
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment