Commit 5dbca3ef authored by Spiros Koulouzis's avatar Spiros Koulouzis

changed types

parent 9a82a58c
......@@ -18,10 +18,10 @@ import org.springframework.data.annotation.Id;
* Credentials
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T14:10:53.529Z")
public class Credentials {
/**
/**
* @return the id
*/
public String getId() {
......
......@@ -3,7 +3,6 @@ package nl.uva.sne.drip.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
......@@ -13,51 +12,33 @@ import java.util.Map;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
import org.springframework.data.annotation.Id;
/**
* NodeTemplate
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T14:10:53.529Z")
public class NodeTemplate {
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
@Id
@JsonIgnore
private String id;
@JsonProperty("derived_from")
private String derivedFrom = null;
@JsonProperty("properties")
@Valid
private Map<String, Object> properties = null;
private Map<String, String> properties = null;
@JsonProperty("requirements")
@Valid
private List<Map<String, Object>> requirements = null;
private List<Map<String, String>> requirements = null;
@JsonProperty("interfaces")
@Valid
private Map<String, Object> interfaces = null;
private Map<String, String> interfaces = null;
@JsonProperty("capabilities")
@Valid
private Map<String, Object> capabilities = null;
private Map<String, String> capabilities = null;
@JsonProperty("type")
private String type = null;
......@@ -71,11 +52,11 @@ public class NodeTemplate {
@JsonProperty("attributes")
@Valid
private Map<String, Object> attributes = null;
private Map<String, String> attributes = null;
@JsonProperty("artifacts")
@Valid
private Map<String, Object> artifacts = null;
private Map<String, String> artifacts = null;
public NodeTemplate derivedFrom(String derivedFrom) {
this.derivedFrom = derivedFrom;
......@@ -97,14 +78,14 @@ public class NodeTemplate {
this.derivedFrom = derivedFrom;
}
public NodeTemplate properties(Map<String, Object> properties) {
public NodeTemplate properties(Map<String, String> properties) {
this.properties = properties;
return this;
}
public NodeTemplate putPropertiesItem(String key, Object propertiesItem) {
public NodeTemplate putPropertiesItem(String key, String propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<String, Object>();
this.properties = new HashMap<String, String>();
}
this.properties.put(key, propertiesItem);
return this;
......@@ -117,22 +98,22 @@ public class NodeTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getProperties() {
public Map<String, String> getProperties() {
return properties;
}
public void setProperties(Map<String, Object> properties) {
public void setProperties(Map<String, String> properties) {
this.properties = properties;
}
public NodeTemplate requirements(List<Map<String, Object>> requirements) {
public NodeTemplate requirements(List<Map<String, String>> requirements) {
this.requirements = requirements;
return this;
}
public NodeTemplate addRequirementsItem(Map<String, Object> requirementsItem) {
public NodeTemplate addRequirementsItem(Map<String, String> requirementsItem) {
if (this.requirements == null) {
this.requirements = new ArrayList<Map<String, Object>>();
this.requirements = new ArrayList<Map<String, String>>();
}
this.requirements.add(requirementsItem);
return this;
......@@ -146,22 +127,22 @@ public class NodeTemplate {
@Valid
public List<Map<String, Object>> getRequirements() {
public List<Map<String, String>> getRequirements() {
return requirements;
}
public void setRequirements(List<Map<String, Object>> requirements) {
public void setRequirements(List<Map<String, String>> requirements) {
this.requirements = requirements;
}
public NodeTemplate interfaces(Map<String, Object> interfaces) {
public NodeTemplate interfaces(Map<String, String> interfaces) {
this.interfaces = interfaces;
return this;
}
public NodeTemplate putInterfacesItem(String key, Object interfacesItem) {
public NodeTemplate putInterfacesItem(String key, String interfacesItem) {
if (this.interfaces == null) {
this.interfaces = new HashMap<String, Object>();
this.interfaces = new HashMap<String, String>();
}
this.interfaces.put(key, interfacesItem);
return this;
......@@ -174,22 +155,22 @@ public class NodeTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getInterfaces() {
public Map<String, String> getInterfaces() {
return interfaces;
}
public void setInterfaces(Map<String, Object> interfaces) {
public void setInterfaces(Map<String, String> interfaces) {
this.interfaces = interfaces;
}
public NodeTemplate capabilities(Map<String, Object> capabilities) {
public NodeTemplate capabilities(Map<String, String> capabilities) {
this.capabilities = capabilities;
return this;
}
public NodeTemplate putCapabilitiesItem(String key, Object capabilitiesItem) {
public NodeTemplate putCapabilitiesItem(String key, String capabilitiesItem) {
if (this.capabilities == null) {
this.capabilities = new HashMap<String, Object>();
this.capabilities = new HashMap<String, String>();
}
this.capabilities.put(key, capabilitiesItem);
return this;
......@@ -202,11 +183,11 @@ public class NodeTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getCapabilities() {
public Map<String, String> getCapabilities() {
return capabilities;
}
public void setCapabilities(Map<String, Object> capabilities) {
public void setCapabilities(Map<String, String> capabilities) {
this.capabilities = capabilities;
}
......@@ -278,14 +259,14 @@ public class NodeTemplate {
this.directives = directives;
}
public NodeTemplate attributes(Map<String, Object> attributes) {
public NodeTemplate attributes(Map<String, String> attributes) {
this.attributes = attributes;
return this;
}
public NodeTemplate putAttributesItem(String key, Object attributesItem) {
public NodeTemplate putAttributesItem(String key, String attributesItem) {
if (this.attributes == null) {
this.attributes = new HashMap<String, Object>();
this.attributes = new HashMap<String, String>();
}
this.attributes.put(key, attributesItem);
return this;
......@@ -298,22 +279,22 @@ public class NodeTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getAttributes() {
public Map<String, String> getAttributes() {
return attributes;
}
public void setAttributes(Map<String, Object> attributes) {
public void setAttributes(Map<String, String> attributes) {
this.attributes = attributes;
}
public NodeTemplate artifacts(Map<String, Object> artifacts) {
public NodeTemplate artifacts(Map<String, String> artifacts) {
this.artifacts = artifacts;
return this;
}
public NodeTemplate putArtifactsItem(String key, Object artifactsItem) {
public NodeTemplate putArtifactsItem(String key, String artifactsItem) {
if (this.artifacts == null) {
this.artifacts = new HashMap<String, Object>();
this.artifacts = new HashMap<String, String>();
}
this.artifacts.put(key, artifactsItem);
return this;
......@@ -326,11 +307,11 @@ public class NodeTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getArtifacts() {
public Map<String, String> getArtifacts() {
return artifacts;
}
public void setArtifacts(Map<String, Object> artifacts) {
public void setArtifacts(Map<String, String> artifacts) {
this.artifacts = artifacts;
}
......
......@@ -2,9 +2,6 @@ package nl.uva.sne.drip.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
......@@ -12,39 +9,20 @@ import java.util.List;
import java.util.Map;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
import org.springframework.data.annotation.Id;
/**
* TopologyTemplate
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T14:10:53.529Z")
public class TopologyTemplate {
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
@Id
@JsonIgnore
private String id;
@JsonProperty("description")
private String description = null;
@JsonProperty("inputs")
private String inputs = null;
@Valid
private Map<String, String> inputs = null;
@JsonProperty("node_templates")
@Valid
......@@ -52,20 +30,23 @@ public class TopologyTemplate {
@JsonProperty("relationship_templates")
@Valid
private Map<String, Object> relationshipTemplates = null;
private Map<String, String> relationshipTemplates = null;
@JsonProperty("outputs")
private String outputs = null;
@Valid
private Map<String, String> outputs = null;
@JsonProperty("groups")
private String groups = null;
@Valid
private Map<String, String> groups = null;
@JsonProperty("substitution_mappings")
private String substitutionMappings = null;
@Valid
private Map<String, String> substitutionMappings = null;
@JsonProperty("policies")
@Valid
private List<String> policies = null;
private List<Map<String, String>> policies = null;
public TopologyTemplate description(String description) {
this.description = description;
......@@ -87,11 +68,19 @@ public class TopologyTemplate {
this.description = description;
}
public TopologyTemplate inputs(String inputs) {
public TopologyTemplate inputs(Map<String, String> inputs) {
this.inputs = inputs;
return this;
}
public TopologyTemplate putInputsItem(String key, String inputsItem) {
if (this.inputs == null) {
this.inputs = new HashMap<String, String>();
}
this.inputs.put(key, inputsItem);
return this;
}
/**
* Get inputs
* @return inputs
......@@ -99,11 +88,11 @@ public class TopologyTemplate {
@ApiModelProperty(value = "")
public String getInputs() {
public Map<String, String> getInputs() {
return inputs;
}
public void setInputs(String inputs) {
public void setInputs(Map<String, String> inputs) {
this.inputs = inputs;
}
......@@ -136,14 +125,14 @@ public class TopologyTemplate {
this.nodeTemplates = nodeTemplates;
}
public TopologyTemplate relationshipTemplates(Map<String, Object> relationshipTemplates) {
public TopologyTemplate relationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
return this;
}
public TopologyTemplate putRelationshipTemplatesItem(String key, Object relationshipTemplatesItem) {
public TopologyTemplate putRelationshipTemplatesItem(String key, String relationshipTemplatesItem) {
if (this.relationshipTemplates == null) {
this.relationshipTemplates = new HashMap<String, Object>();
this.relationshipTemplates = new HashMap<String, String>();
}
this.relationshipTemplates.put(key, relationshipTemplatesItem);
return this;
......@@ -156,19 +145,27 @@ public class TopologyTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getRelationshipTemplates() {
public Map<String, String> getRelationshipTemplates() {
return relationshipTemplates;
}
public void setRelationshipTemplates(Map<String, Object> relationshipTemplates) {
public void setRelationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
}
public TopologyTemplate outputs(String outputs) {
public TopologyTemplate outputs(Map<String, String> outputs) {
this.outputs = outputs;
return this;
}
public TopologyTemplate putOutputsItem(String key, String outputsItem) {
if (this.outputs == null) {
this.outputs = new HashMap<String, String>();
}
this.outputs.put(key, outputsItem);
return this;
}
/**
* Get outputs
* @return outputs
......@@ -176,19 +173,27 @@ public class TopologyTemplate {
@ApiModelProperty(value = "")
public String getOutputs() {
public Map<String, String> getOutputs() {
return outputs;
}
public void setOutputs(String outputs) {
public void setOutputs(Map<String, String> outputs) {
this.outputs = outputs;
}
public TopologyTemplate groups(String groups) {
public TopologyTemplate groups(Map<String, String> groups) {
this.groups = groups;
return this;
}
public TopologyTemplate putGroupsItem(String key, String groupsItem) {
if (this.groups == null) {
this.groups = new HashMap<String, String>();
}
this.groups.put(key, groupsItem);
return this;
}
/**
* Get groups
* @return groups
......@@ -196,19 +201,27 @@ public class TopologyTemplate {
@ApiModelProperty(value = "")
public String getGroups() {
public Map<String, String> getGroups() {
return groups;
}
public void setGroups(String groups) {
public void setGroups(Map<String, String> groups) {
this.groups = groups;
}
public TopologyTemplate substitutionMappings(String substitutionMappings) {
public TopologyTemplate substitutionMappings(Map<String, String> substitutionMappings) {
this.substitutionMappings = substitutionMappings;
return this;
}
public TopologyTemplate putSubstitutionMappingsItem(String key, String substitutionMappingsItem) {
if (this.substitutionMappings == null) {
this.substitutionMappings = new HashMap<String, String>();
}
this.substitutionMappings.put(key, substitutionMappingsItem);
return this;
}
/**
* Get substitutionMappings
* @return substitutionMappings
......@@ -216,22 +229,22 @@ public class TopologyTemplate {
@ApiModelProperty(value = "")
public String getSubstitutionMappings() {
public Map<String, String> getSubstitutionMappings() {
return substitutionMappings;
}
public void setSubstitutionMappings(String substitutionMappings) {
public void setSubstitutionMappings(Map<String, String> substitutionMappings) {
this.substitutionMappings = substitutionMappings;
}
public TopologyTemplate policies(List<String> policies) {
public TopologyTemplate policies(List<Map<String, String>> policies) {
this.policies = policies;
return this;
}
public TopologyTemplate addPoliciesItem(String policiesItem) {
public TopologyTemplate addPoliciesItem(Map<String, String> policiesItem) {
if (this.policies == null) {
this.policies = new ArrayList<String>();
this.policies = new ArrayList<Map<String, String>>();
}
this.policies.add(policiesItem);
return this;
......@@ -243,12 +256,13 @@ public class TopologyTemplate {
**/
@ApiModelProperty(value = "")
@Valid
public List<String> getPolicies() {
public List<Map<String, String>> getPolicies() {
return policies;
}
public void setPolicies(List<String> policies) {
public void setPolicies(List<Map<String, String>> policies) {
this.policies = policies;
}
......
......@@ -19,11 +19,10 @@ import org.springframework.data.annotation.Id;
* ToscaTemplate
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T14:10:53.529Z")
public class ToscaTemplate {
/**
public class ToscaTemplate {
/**
* @return the id
*/
public String getId() {
......@@ -40,646 +39,627 @@ public class ToscaTemplate {
@Id
@JsonIgnore
private String id;
@JsonProperty("tosca_definitions_version")
private String toscaDefinitionsVersion = null;
@JsonProperty("tosca_definitions_version")
private String toscaDefinitionsVersion = null;
@JsonProperty("tosca_default_namespace")
private String toscaDefaultNamespace = null;
@JsonProperty("tosca_default_namespace")
private String toscaDefaultNamespace = null;
@JsonProperty("template_name")
private String templateName = null;
@JsonProperty("template_name")
private String templateName = null;
@JsonProperty("topology_template")
private TopologyTemplate topologyTemplate = null;
@JsonProperty("topology_template")
private TopologyTemplate topologyTemplate = null;
@JsonProperty("template_author")
private String templateAuthor = null;
@JsonProperty("template_author")
private String templateAuthor = null;
@JsonProperty("template_version")
private String templateVersion = null;
@JsonProperty("template_version")
private String templateVersion = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("imports")
@Valid
private List<Map<String, String>> imports = null;
@JsonProperty("imports")
@Valid
private List<Map<String, Object>> imports = null;
@JsonProperty("dsl_definitions")
@Valid
private Map<String, String> dslDefinitions = null;
@JsonProperty("dsl_definitions")
@Valid
private Map<String, Object> dslDefinitions = null;
@JsonProperty("node_types")
@Valid
private Map<String, String> nodeTypes = null;
@JsonProperty("node_types")
@Valid
private Map<String, Object> nodeTypes = null;
@JsonProperty("relationship_types")
@Valid
private Map<String, String> relationshipTypes = null;
@JsonProperty("relationship_types")
@Valid
private Map<String, Object> relationshipTypes = null;
@JsonProperty("relationship_templates")
@Valid
private Map<String, String> relationshipTemplates = null;
@JsonProperty("relationship_templates")
@Valid
private Map<String, Object> relationshipTemplates = null;
@JsonProperty("capability_types")
@Valid
private Map<String, String> capabilityTypes = null;
@JsonProperty("capability_types")
@Valid
private Map<String, Object> capabilityTypes = null;
@JsonProperty("artifact_types")
@Valid
private Map<String, String> artifactTypes = null;
@JsonProperty("artifact_types")
@Valid
private Map<String, Object> artifactTypes = null;
@JsonProperty("data_types")
@Valid
private Map<String, String> dataTypes = null;
@JsonProperty("data_types")
@Valid
private Map<String, Object> dataTypes = null;
@JsonProperty("interface_types")
@Valid
private Map<String, String> interfaceTypes = null;
@JsonProperty("interface_types")
@Valid
private Map<String, Object> interfaceTypes = null;
@JsonProperty("policy_types")
@Valid
private Map<String, String> policyTypes = null;
@JsonProperty("policy_types")
@Valid
private Map<String, String> policyTypes = null;
@JsonProperty("group_types")
@Valid
private Map<String, String> groupTypes = null;
@JsonProperty("group_types")
@Valid
private Map<String, Object> groupTypes = null;
@JsonProperty("repositories")
@Valid
private Map<String, String> repositories = null;
@JsonProperty("repositories")
@Valid
private Map<String, Object> repositories = null;
public ToscaTemplate toscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
return this;
}
public ToscaTemplate toscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
return this;
}
/**
* Get toscaDefinitionsVersion
* @return toscaDefinitionsVersion
**/
@ApiModelProperty(value = "")
/**
* Get toscaDefinitionsVersion
*
* @return toscaDefinitionsVersion
*
*/
@ApiModelProperty(value = "")
public String getToscaDefinitionsVersion() {
return toscaDefinitionsVersion;
}
public String getToscaDefinitionsVersion() {
return toscaDefinitionsVersion;
}
public void setToscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
}
public void setToscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
}
public ToscaTemplate toscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
return this;
}
public ToscaTemplate toscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
return this;
}
/**
* Get toscaDefaultNamespace
*
* @return toscaDefaultNamespace
*
*/
@ApiModelProperty(value = "")
/**
* Get toscaDefaultNamespace
* @return toscaDefaultNamespace
**/
@ApiModelProperty(value = "")
public String getToscaDefaultNamespace() {
return toscaDefaultNamespace;
}
public void setToscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
}
public String getToscaDefaultNamespace() {
return toscaDefaultNamespace;
}
public ToscaTemplate templateName(String templateName) {
this.templateName = templateName;
return this;
}
public void setToscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
}
/**
* Get templateName
*
* @return templateName
*
*/
@ApiModelProperty(value = "")
public ToscaTemplate templateName(String templateName) {
this.templateName = templateName;
return this;
}
public String getTemplateName() {
return templateName;
}
/**
* Get templateName
* @return templateName
**/
@ApiModelProperty(value = "")
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
public ToscaTemplate topologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
return this;
}
public String getTemplateName() {
return templateName;
}
/**
* Get topologyTemplate
*
* @return topologyTemplate
*
*/
@ApiModelProperty(value = "")
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
@Valid
public ToscaTemplate topologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
return this;
}
/**
* Get topologyTemplate
* @return topologyTemplate
**/
@ApiModelProperty(value = "")
public TopologyTemplate getTopologyTemplate() {
return topologyTemplate;
}
@Valid
public TopologyTemplate getTopologyTemplate() {
return topologyTemplate;
}
public void setTopologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
}
public ToscaTemplate templateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
return this;
}
/**
* Get templateAuthor
* @return templateAuthor
**/
@ApiModelProperty(value = "")
public void setTopologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
}
public ToscaTemplate templateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
return this;
}
public String getTemplateAuthor() {
return templateAuthor;
}
public void setTemplateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
}
public ToscaTemplate templateVersion(String templateVersion) {
this.templateVersion = templateVersion;
return this;
}
/**
* Get templateVersion
* @return templateVersion
**/
@ApiModelProperty(value = "")
public String getTemplateVersion() {
return templateVersion;
}
public void setTemplateVersion(String templateVersion) {
this.templateVersion = templateVersion;
}
public ToscaTemplate description(String description) {
this.description = description;
return this;
}
/**
* Get templateAuthor
*
* @return templateAuthor
*
*/
@ApiModelProperty(value = "")
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
public String getTemplateAuthor() {
return templateAuthor;
}
public void setTemplateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ToscaTemplate imports(List<Map<String, String>> imports) {
this.imports = imports;
return this;
}
public ToscaTemplate addImportsItem(Map<String, String> importsItem) {
if (this.imports == null) {
this.imports = new ArrayList<Map<String, String>>();
}
this.imports.add(importsItem);
return this;
}
public ToscaTemplate templateVersion(String templateVersion) {
this.templateVersion = templateVersion;
return this;
}
/**
* Get imports
* @return imports
**/
@ApiModelProperty(value = "")
/**
* Get templateVersion
*
* @return templateVersion
*
*/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, String>> getImports() {
return imports;
}
public void setImports(List<Map<String, String>> imports) {
this.imports = imports;
}
public String getTemplateVersion() {
return templateVersion;
}
public ToscaTemplate dslDefinitions(Map<String, String> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
return this;
}
public void setTemplateVersion(String templateVersion) {
this.templateVersion = templateVersion;
public ToscaTemplate putDslDefinitionsItem(String key, String dslDefinitionsItem) {
if (this.dslDefinitions == null) {
this.dslDefinitions = new HashMap<String, String>();
}
this.dslDefinitions.put(key, dslDefinitionsItem);
return this;
}
public ToscaTemplate description(String description) {
this.description = description;
return this;
}
/**
* Get dslDefinitions
* @return dslDefinitions
**/
@ApiModelProperty(value = "")
/**
* Get description
*
* @return description
*
*/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public Map<String, String> getDslDefinitions() {
return dslDefinitions;
}
public void setDslDefinitions(Map<String, String> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
}
public ToscaTemplate nodeTypes(Map<String, String> nodeTypes) {
this.nodeTypes = nodeTypes;
return this;
}
public void setDescription(String description) {
this.description = description;
public ToscaTemplate putNodeTypesItem(String key, String nodeTypesItem) {
if (this.nodeTypes == null) {
this.nodeTypes = new HashMap<String, String>();
}
this.nodeTypes.put(key, nodeTypesItem);
return this;
}
public ToscaTemplate imports(List<Map<String, Object>> imports) {
this.imports = imports;
return this;
}
public ToscaTemplate addImportsItem(Map<String, Object> importsItem) {
if (this.imports == null) {
this.imports = new ArrayList<Map<String, Object>>();
}
this.imports.add(importsItem);
return this;
}
/**
* Get nodeTypes
* @return nodeTypes
**/
@ApiModelProperty(value = "")
/**
* Get imports
*
* @return imports
*
*/
@ApiModelProperty(value = "")
@Valid
public Map<String, String> getNodeTypes() {
return nodeTypes;
}
public void setNodeTypes(Map<String, String> nodeTypes) {
this.nodeTypes = nodeTypes;
}
public ToscaTemplate relationshipTypes(Map<String, String> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
return this;
}
public List<Map<String, Object>> getImports() {
return imports;
public ToscaTemplate putRelationshipTypesItem(String key, String relationshipTypesItem) {
if (this.relationshipTypes == null) {
this.relationshipTypes = new HashMap<String, String>();
}
this.relationshipTypes.put(key, relationshipTypesItem);
return this;
}
public void setImports(List<Map<String, Object>> imports) {
this.imports = imports;
}
/**
* Get relationshipTypes
* @return relationshipTypes
**/
@ApiModelProperty(value = "")
public ToscaTemplate dslDefinitions(Map<String, Object> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
return this;
}
public ToscaTemplate putDslDefinitionsItem(String key, Object dslDefinitionsItem) {
if (this.dslDefinitions == null) {
this.dslDefinitions = new HashMap<String, Object>();
}
this.dslDefinitions.put(key, dslDefinitionsItem);
return this;
}
public Map<String, String> getRelationshipTypes() {
return relationshipTypes;
}
/**
* Get dslDefinitions
*
* @return dslDefinitions
*
*/
@ApiModelProperty(value = "")
public void setRelationshipTypes(Map<String, String> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
}
public Map<String, Object> getDslDefinitions() {
return dslDefinitions;
}
public ToscaTemplate relationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
return this;
}
public void setDslDefinitions(Map<String, Object> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
public ToscaTemplate putRelationshipTemplatesItem(String key, String relationshipTemplatesItem) {
if (this.relationshipTemplates == null) {
this.relationshipTemplates = new HashMap<String, String>();
}
this.relationshipTemplates.put(key, relationshipTemplatesItem);
return this;
}
public ToscaTemplate nodeTypes(Map<String, Object> nodeTypes) {
this.nodeTypes = nodeTypes;
return this;
}
/**
* Get relationshipTemplates
* @return relationshipTemplates
**/
@ApiModelProperty(value = "")
public ToscaTemplate putNodeTypesItem(String key, Object nodeTypesItem) {
if (this.nodeTypes == null) {
this.nodeTypes = new HashMap<String, Object>();
}
this.nodeTypes.put(key, nodeTypesItem);
return this;
}
/**
* Get nodeTypes
*
* @return nodeTypes
*
*/
@ApiModelProperty(value = "")
public Map<String, String> getRelationshipTemplates() {
return relationshipTemplates;
}
public Map<String, Object> getNodeTypes() {
return nodeTypes;
}
public void setRelationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
}
public void setNodeTypes(Map<String, Object> nodeTypes) {
this.nodeTypes = nodeTypes;
}
public ToscaTemplate capabilityTypes(Map<String, String> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
return this;
}
public ToscaTemplate relationshipTypes(Map<String, Object> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
return this;
public ToscaTemplate putCapabilityTypesItem(String key, String capabilityTypesItem) {
if (this.capabilityTypes == null) {
this.capabilityTypes = new HashMap<String, String>();
}
this.capabilityTypes.put(key, capabilityTypesItem);
return this;
}
public ToscaTemplate putRelationshipTypesItem(String key, Object relationshipTypesItem) {
if (this.relationshipTypes == null) {
this.relationshipTypes = new HashMap<String, Object>();
}
this.relationshipTypes.put(key, relationshipTypesItem);
return this;
}
/**
* Get capabilityTypes
* @return capabilityTypes
**/
@ApiModelProperty(value = "")
/**
* Get relationshipTypes
*
* @return relationshipTypes
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getRelationshipTypes() {
return relationshipTypes;
}
public Map<String, String> getCapabilityTypes() {
return capabilityTypes;
}
public void setRelationshipTypes(Map<String, Object> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
}
public void setCapabilityTypes(Map<String, String> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
}
public ToscaTemplate relationshipTemplates(Map<String, Object> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
return this;
}
public ToscaTemplate artifactTypes(Map<String, String> artifactTypes) {
this.artifactTypes = artifactTypes;
return this;
}
public ToscaTemplate putRelationshipTemplatesItem(String key, Object relationshipTemplatesItem) {
if (this.relationshipTemplates == null) {
this.relationshipTemplates = new HashMap<String, Object>();
}
this.relationshipTemplates.put(key, relationshipTemplatesItem);
return this;
public ToscaTemplate putArtifactTypesItem(String key, String artifactTypesItem) {
if (this.artifactTypes == null) {
this.artifactTypes = new HashMap<String, String>();
}
this.artifactTypes.put(key, artifactTypesItem);
return this;
}
/**
* Get relationshipTemplates
*
* @return relationshipTemplates
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getRelationshipTemplates() {
return relationshipTemplates;
}
/**
* Get artifactTypes
* @return artifactTypes
**/
@ApiModelProperty(value = "")
public void setRelationshipTemplates(Map<String, Object> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
}
public ToscaTemplate capabilityTypes(Map<String, Object> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
return this;
}
public Map<String, String> getArtifactTypes() {
return artifactTypes;
}
public ToscaTemplate putCapabilityTypesItem(String key, Object capabilityTypesItem) {
if (this.capabilityTypes == null) {
this.capabilityTypes = new HashMap<String, Object>();
}
this.capabilityTypes.put(key, capabilityTypesItem);
return this;
}
public void setArtifactTypes(Map<String, String> artifactTypes) {
this.artifactTypes = artifactTypes;
}
/**
* Get capabilityTypes
*
* @return capabilityTypes
*
*/
@ApiModelProperty(value = "")
public ToscaTemplate dataTypes(Map<String, String> dataTypes) {
this.dataTypes = dataTypes;
return this;
}
public Map<String, Object> getCapabilityTypes() {
return capabilityTypes;
public ToscaTemplate putDataTypesItem(String key, String dataTypesItem) {
if (this.dataTypes == null) {
this.dataTypes = new HashMap<String, String>();
}
this.dataTypes.put(key, dataTypesItem);
return this;
}
public void setCapabilityTypes(Map<String, Object> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
}
/**
* Get dataTypes
* @return dataTypes
**/
@ApiModelProperty(value = "")
public ToscaTemplate artifactTypes(Map<String, Object> artifactTypes) {
this.artifactTypes = artifactTypes;
return this;
}
public ToscaTemplate putArtifactTypesItem(String key, Object artifactTypesItem) {
if (this.artifactTypes == null) {
this.artifactTypes = new HashMap<String, Object>();
}
this.artifactTypes.put(key, artifactTypesItem);
return this;
}
/**
* Get artifactTypes
*
* @return artifactTypes
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getArtifactTypes() {
return artifactTypes;
}
public void setArtifactTypes(Map<String, Object> artifactTypes) {
this.artifactTypes = artifactTypes;
}
public ToscaTemplate dataTypes(Map<String, Object> dataTypes) {
this.dataTypes = dataTypes;
return this;
}
public ToscaTemplate putDataTypesItem(String key, Object dataTypesItem) {
if (this.dataTypes == null) {
this.dataTypes = new HashMap<String, Object>();
}
this.dataTypes.put(key, dataTypesItem);
return this;
}
/**
* Get dataTypes
*
* @return dataTypes
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getDataTypes() {
return dataTypes;
}
public void setDataTypes(Map<String, Object> dataTypes) {
this.dataTypes = dataTypes;
}
public ToscaTemplate interfaceTypes(Map<String, Object> interfaceTypes) {
this.interfaceTypes = interfaceTypes;
return this;
}
public ToscaTemplate putInterfaceTypesItem(String key, Object interfaceTypesItem) {
if (this.interfaceTypes == null) {
this.interfaceTypes = new HashMap<String, Object>();
}
this.interfaceTypes.put(key, interfaceTypesItem);
return this;
}
/**
* Get interfaceTypes
*
* @return interfaceTypes
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getInterfaceTypes() {
return interfaceTypes;
}
public void setInterfaceTypes(Map<String, Object> interfaceTypes) {
this.interfaceTypes = interfaceTypes;
}
public ToscaTemplate policyTypes(Map<String, String> policyTypes) {
this.policyTypes = policyTypes;
return this;
}
public ToscaTemplate putPolicyTypesItem(String key, String policyTypesItem) {
if (this.policyTypes == null) {
this.policyTypes = new HashMap<String, String>();
}
this.policyTypes.put(key, policyTypesItem);
return this;
}
public Map<String, String> getDataTypes() {
return dataTypes;
}
/**
* Get policyTypes
*
* @return policyTypes
*
*/
@ApiModelProperty(value = "")
public void setDataTypes(Map<String, String> dataTypes) {
this.dataTypes = dataTypes;
}
public Map<String, String> getPolicyTypes() {
return policyTypes;
}
public ToscaTemplate interfaceTypes(Map<String, String> interfaceTypes) {
this.interfaceTypes = interfaceTypes;
return this;
}
public void setPolicyTypes(Map<String, String> policyTypes) {
this.policyTypes = policyTypes;
public ToscaTemplate putInterfaceTypesItem(String key, String interfaceTypesItem) {
if (this.interfaceTypes == null) {
this.interfaceTypes = new HashMap<String, String>();
}
this.interfaceTypes.put(key, interfaceTypesItem);
return this;
}
public ToscaTemplate groupTypes(Map<String, Object> groupTypes) {
this.groupTypes = groupTypes;
return this;
}
/**
* Get interfaceTypes
* @return interfaceTypes
**/
@ApiModelProperty(value = "")
public ToscaTemplate putGroupTypesItem(String key, Object groupTypesItem) {
if (this.groupTypes == null) {
this.groupTypes = new HashMap<String, Object>();
}
this.groupTypes.put(key, groupTypesItem);
return this;
}
/**
* Get groupTypes
*
* @return groupTypes
*
*/
@ApiModelProperty(value = "")
public Map<String, String> getInterfaceTypes() {
return interfaceTypes;
}
public Map<String, Object> getGroupTypes() {
return groupTypes;
}
public void setGroupTypes(Map<String, Object> groupTypes) {
this.groupTypes = groupTypes;
}
public ToscaTemplate repositories(Map<String, Object> repositories) {
this.repositories = repositories;
return this;
}
public ToscaTemplate putRepositoriesItem(String key, Object repositoriesItem) {
if (this.repositories == null) {
this.repositories = new HashMap<String, Object>();
}
this.repositories.put(key, repositoriesItem);
return this;
}
public void setInterfaceTypes(Map<String, String> interfaceTypes) {
this.interfaceTypes = interfaceTypes;
}
/**
* Get repositories
*
* @return repositories
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getRepositories() {
return repositories;
}
public void setRepositories(Map<String, Object> repositories) {
this.repositories = repositories;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ToscaTemplate toscaTemplate = (ToscaTemplate) o;
return Objects.equals(this.toscaDefinitionsVersion, toscaTemplate.toscaDefinitionsVersion)
&& Objects.equals(this.toscaDefaultNamespace, toscaTemplate.toscaDefaultNamespace)
&& Objects.equals(this.templateName, toscaTemplate.templateName)
&& Objects.equals(this.topologyTemplate, toscaTemplate.topologyTemplate)
&& Objects.equals(this.templateAuthor, toscaTemplate.templateAuthor)
&& Objects.equals(this.templateVersion, toscaTemplate.templateVersion)
&& Objects.equals(this.description, toscaTemplate.description)
&& Objects.equals(this.imports, toscaTemplate.imports)
&& Objects.equals(this.dslDefinitions, toscaTemplate.dslDefinitions)
&& Objects.equals(this.nodeTypes, toscaTemplate.nodeTypes)
&& Objects.equals(this.relationshipTypes, toscaTemplate.relationshipTypes)
&& Objects.equals(this.relationshipTemplates, toscaTemplate.relationshipTemplates)
&& Objects.equals(this.capabilityTypes, toscaTemplate.capabilityTypes)
&& Objects.equals(this.artifactTypes, toscaTemplate.artifactTypes)
&& Objects.equals(this.dataTypes, toscaTemplate.dataTypes)
&& Objects.equals(this.interfaceTypes, toscaTemplate.interfaceTypes)
&& Objects.equals(this.policyTypes, toscaTemplate.policyTypes)
&& Objects.equals(this.groupTypes, toscaTemplate.groupTypes)
&& Objects.equals(this.repositories, toscaTemplate.repositories);
}
@Override
public int hashCode() {
return Objects.hash(toscaDefinitionsVersion, toscaDefaultNamespace, templateName, topologyTemplate, templateAuthor, templateVersion, description, imports, dslDefinitions, nodeTypes, relationshipTypes, relationshipTemplates, capabilityTypes, artifactTypes, dataTypes, interfaceTypes, policyTypes, groupTypes, repositories);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ToscaTemplate {\n");
sb.append(" toscaDefinitionsVersion: ").append(toIndentedString(toscaDefinitionsVersion)).append("\n");
sb.append(" toscaDefaultNamespace: ").append(toIndentedString(toscaDefaultNamespace)).append("\n");
sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n");
sb.append(" topologyTemplate: ").append(toIndentedString(topologyTemplate)).append("\n");
sb.append(" templateAuthor: ").append(toIndentedString(templateAuthor)).append("\n");
sb.append(" templateVersion: ").append(toIndentedString(templateVersion)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" imports: ").append(toIndentedString(imports)).append("\n");
sb.append(" dslDefinitions: ").append(toIndentedString(dslDefinitions)).append("\n");
sb.append(" nodeTypes: ").append(toIndentedString(nodeTypes)).append("\n");
sb.append(" relationshipTypes: ").append(toIndentedString(relationshipTypes)).append("\n");
sb.append(" relationshipTemplates: ").append(toIndentedString(relationshipTemplates)).append("\n");
sb.append(" capabilityTypes: ").append(toIndentedString(capabilityTypes)).append("\n");
sb.append(" artifactTypes: ").append(toIndentedString(artifactTypes)).append("\n");
sb.append(" dataTypes: ").append(toIndentedString(dataTypes)).append("\n");
sb.append(" interfaceTypes: ").append(toIndentedString(interfaceTypes)).append("\n");
sb.append(" policyTypes: ").append(toIndentedString(policyTypes)).append("\n");
sb.append(" groupTypes: ").append(toIndentedString(groupTypes)).append("\n");
sb.append(" repositories: ").append(toIndentedString(repositories)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
public ToscaTemplate policyTypes(Map<String, String> policyTypes) {
this.policyTypes = policyTypes;
return this;
}
public ToscaTemplate putPolicyTypesItem(String key, String policyTypesItem) {
if (this.policyTypes == null) {
this.policyTypes = new HashMap<String, String>();
}
this.policyTypes.put(key, policyTypesItem);
return this;
}
/**
* Get policyTypes
* @return policyTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getPolicyTypes() {
return policyTypes;
}
public void setPolicyTypes(Map<String, String> policyTypes) {
this.policyTypes = policyTypes;
}
public ToscaTemplate groupTypes(Map<String, String> groupTypes) {
this.groupTypes = groupTypes;
return this;
}
public ToscaTemplate putGroupTypesItem(String key, String groupTypesItem) {
if (this.groupTypes == null) {
this.groupTypes = new HashMap<String, String>();
}
this.groupTypes.put(key, groupTypesItem);
return this;
}
/**
* Get groupTypes
* @return groupTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getGroupTypes() {
return groupTypes;
}
public void setGroupTypes(Map<String, String> groupTypes) {
this.groupTypes = groupTypes;
}
public ToscaTemplate repositories(Map<String, String> repositories) {
this.repositories = repositories;
return this;
}
public ToscaTemplate putRepositoriesItem(String key, String repositoriesItem) {
if (this.repositories == null) {
this.repositories = new HashMap<String, String>();
}
this.repositories.put(key, repositoriesItem);
return this;
}
/**
* Get repositories
* @return repositories
**/
@ApiModelProperty(value = "")
public Map<String, String> getRepositories() {
return repositories;
}
public void setRepositories(Map<String, String> repositories) {
this.repositories = repositories;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ToscaTemplate toscaTemplate = (ToscaTemplate) o;
return Objects.equals(this.toscaDefinitionsVersion, toscaTemplate.toscaDefinitionsVersion) &&
Objects.equals(this.toscaDefaultNamespace, toscaTemplate.toscaDefaultNamespace) &&
Objects.equals(this.templateName, toscaTemplate.templateName) &&
Objects.equals(this.topologyTemplate, toscaTemplate.topologyTemplate) &&
Objects.equals(this.templateAuthor, toscaTemplate.templateAuthor) &&
Objects.equals(this.templateVersion, toscaTemplate.templateVersion) &&
Objects.equals(this.description, toscaTemplate.description) &&
Objects.equals(this.imports, toscaTemplate.imports) &&
Objects.equals(this.dslDefinitions, toscaTemplate.dslDefinitions) &&
Objects.equals(this.nodeTypes, toscaTemplate.nodeTypes) &&
Objects.equals(this.relationshipTypes, toscaTemplate.relationshipTypes) &&
Objects.equals(this.relationshipTemplates, toscaTemplate.relationshipTemplates) &&
Objects.equals(this.capabilityTypes, toscaTemplate.capabilityTypes) &&
Objects.equals(this.artifactTypes, toscaTemplate.artifactTypes) &&
Objects.equals(this.dataTypes, toscaTemplate.dataTypes) &&
Objects.equals(this.interfaceTypes, toscaTemplate.interfaceTypes) &&
Objects.equals(this.policyTypes, toscaTemplate.policyTypes) &&
Objects.equals(this.groupTypes, toscaTemplate.groupTypes) &&
Objects.equals(this.repositories, toscaTemplate.repositories);
}
@Override
public int hashCode() {
return Objects.hash(toscaDefinitionsVersion, toscaDefaultNamespace, templateName, topologyTemplate, templateAuthor, templateVersion, description, imports, dslDefinitions, nodeTypes, relationshipTypes, relationshipTemplates, capabilityTypes, artifactTypes, dataTypes, interfaceTypes, policyTypes, groupTypes, repositories);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ToscaTemplate {\n");
sb.append(" toscaDefinitionsVersion: ").append(toIndentedString(toscaDefinitionsVersion)).append("\n");
sb.append(" toscaDefaultNamespace: ").append(toIndentedString(toscaDefaultNamespace)).append("\n");
sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n");
sb.append(" topologyTemplate: ").append(toIndentedString(topologyTemplate)).append("\n");
sb.append(" templateAuthor: ").append(toIndentedString(templateAuthor)).append("\n");
sb.append(" templateVersion: ").append(toIndentedString(templateVersion)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" imports: ").append(toIndentedString(imports)).append("\n");
sb.append(" dslDefinitions: ").append(toIndentedString(dslDefinitions)).append("\n");
sb.append(" nodeTypes: ").append(toIndentedString(nodeTypes)).append("\n");
sb.append(" relationshipTypes: ").append(toIndentedString(relationshipTypes)).append("\n");
sb.append(" relationshipTemplates: ").append(toIndentedString(relationshipTemplates)).append("\n");
sb.append(" capabilityTypes: ").append(toIndentedString(capabilityTypes)).append("\n");
sb.append(" artifactTypes: ").append(toIndentedString(artifactTypes)).append("\n");
sb.append(" dataTypes: ").append(toIndentedString(dataTypes)).append("\n");
sb.append(" interfaceTypes: ").append(toIndentedString(interfaceTypes)).append("\n");
sb.append(" policyTypes: ").append(toIndentedString(policyTypes)).append("\n");
sb.append(" groupTypes: ").append(toIndentedString(groupTypes)).append("\n");
sb.append(" repositories: ").append(toIndentedString(repositories)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
package nl.uva.sne.drip.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.Objects;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
import org.springframework.data.annotation.Id;
/**
* User
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T14:10:53.529Z")
public class User {
/**
* @return the id
*/
public String getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(String id) {
this.id = id;
}
@Id
@JsonIgnore
private String id;
@Override
public boolean equals(java.lang.Object o) {
......
......@@ -5,6 +5,7 @@
*/
package nl.uva.sne.drip.service;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
......@@ -12,6 +13,7 @@ import java.util.Map;
import java.util.concurrent.TimeoutException;
import java.util.logging.Level;
import java.util.logging.Logger;
import nl.uva.sne.drip.commons.sure_tosca.client.ApiException;
import nl.uva.sne.drip.commons.utils.ToscaHelper;
import nl.uva.sne.drip.model.Message;
import nl.uva.sne.drip.model.NodeTemplate;
......@@ -40,7 +42,7 @@ public class ProvisionerService {
ToscaHelper toscaHelper;
private Integer toscaHelperID;
public String provision(String id) throws IOException {
public String provision(String id) throws IOException, JsonProcessingException, ApiException {
String ymlToscaTemplate = toscaTemplateService.findByID(id);
ToscaTemplate toscaTemplate = toscaTemplateService.getYaml2ToscaTemplate(ymlToscaTemplate);
......@@ -48,7 +50,7 @@ public class ProvisionerService {
toscaTemplate = addProvisionInterface(toscaTemplate);
return null;
return toscaTemplateService.save(toscaTemplate);
}
// private List<Map<String, NodeTemplate>> getVmTopologies(ToscaTemplate toscaTemplate) {
......
......@@ -6,21 +6,21 @@
properties:
type: object
additionalProperties:
type: string
type: object
requirements:
type: "array"
items:
type: object
additionalProperties:
type: string
type: object
interfaces:
type: object
additionalProperties:
type: string
type: object
capabilities:
type: object
additionalProperties:
type: string
type: object
type:
type: "string"
description:
......@@ -32,11 +32,11 @@
attributes:
type: object
additionalProperties:
type: string
type: object
artifacts:
type: object
additionalProperties:
type: string
type: object
......
......@@ -14,22 +14,22 @@
relationship_templates:
type: object
additionalProperties:
type: string
type: object
outputs:
type: object
additionalProperties:
type: string
type: object
groups:
type: object
additionalProperties:
type: string
type: object
substitution_mappings:
type: object
additionalProperties:
type: string
type: object
policies:
type: "array"
items:
type: object
additionalProperties:
type: string
type: object
......@@ -18,51 +18,51 @@
imports:
type: "array"
items:
type: object
additionalProperties:
type: string
type: object
additionalProperties:
type: object
dsl_definitions:
type: object
additionalProperties:
type: string
type: object
node_types:
type: object
additionalProperties:
type: string
type: object
relationship_types:
type: object
additionalProperties:
type: string
type: object
relationship_templates:
type: object
additionalProperties:
type: string
type: object
capability_types:
type: object
additionalProperties:
type: string
type: object
artifact_types:
type: object
additionalProperties:
type: string
type: object
data_types:
type: object
additionalProperties:
type: string
type: object
interface_types:
type: object
additionalProperties:
type: string
type: object
policy_types:
type: object
additionalProperties:
type: string
type: object
group_types:
type: object
additionalProperties:
type: string
type: object
repositories:
type: object
additionalProperties:
type: string
type: object
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