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

changed types

parent 8e781faa
......@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.HashMap;
......@@ -19,9 +18,9 @@ import org.springframework.data.annotation.Id;
* Credentials
*/
@Validated
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Credentials {
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class Credentials {
/**
* @return the id
*/
......@@ -39,204 +38,201 @@ public class Credentials {
@Id
@JsonIgnore
private String id;
@JsonProperty("protocol")
private String protocol = null;
@JsonProperty("protocol")
private String protocol = null;
@JsonProperty("token_type")
private String tokenType = null;
@JsonProperty("token_type")
private String tokenType = null;
@JsonProperty("token")
private String token = null;
@JsonProperty("token")
private String token = null;
@JsonProperty("keys")
@Valid
private Map<String, String> keys = null;
@JsonProperty("keys")
@Valid
private Map<String, String> keys = null;
@JsonProperty("user")
private String user = null;
@JsonProperty("user")
private String user = null;
@JsonProperty("cloud_provider_name")
private String cloudProviderName = null;
@JsonProperty("cloud_provider_name")
private String cloudProviderName = null;
public Credentials protocol(String protocol) {
this.protocol = protocol;
return this;
}
public Credentials protocol(String protocol) {
this.protocol = protocol;
return this;
}
/**
* Get protocol
*
* @return protocol
*
*/
@ApiModelProperty(value = "")
/**
* Get protocol
* @return protocol
**/
@ApiModelProperty(value = "")
public String getProtocol() {
return protocol;
}
public void setProtocol(String protocol) {
this.protocol = protocol;
}
public String getProtocol() {
return protocol;
}
public Credentials tokenType(String tokenType) {
this.tokenType = tokenType;
return this;
}
public void setProtocol(String protocol) {
this.protocol = protocol;
}
/**
* Get tokenType
*
* @return tokenType
*
*/
@ApiModelProperty(value = "")
public Credentials tokenType(String tokenType) {
this.tokenType = tokenType;
return this;
}
public String getTokenType() {
return tokenType;
}
/**
* Get tokenType
* @return tokenType
**/
@ApiModelProperty(value = "")
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
public Credentials token(String token) {
this.token = token;
return this;
}
public String getTokenType() {
return tokenType;
}
/**
* Get token
*
* @return token
*
*/
@ApiModelProperty(value = "")
public void setTokenType(String tokenType) {
this.tokenType = tokenType;
}
public String getToken() {
return token;
}
public Credentials token(String token) {
this.token = token;
return this;
}
public void setToken(String token) {
this.token = token;
}
public Credentials keys(Map<String, String> keys) {
this.keys = keys;
return this;
}
/**
* Get token
* @return token
**/
@ApiModelProperty(value = "")
public Credentials putKeysItem(String key, String keysItem) {
if (this.keys == null) {
this.keys = new HashMap<String, String>();
}
this.keys.put(key, keysItem);
return this;
}
/**
* Get keys
*
* @return keys
*
*/
@ApiModelProperty(value = "")
public Map<String, String> getKeys() {
return keys;
}
public void setKeys(Map<String, String> keys) {
this.keys = keys;
}
public Credentials user(String user) {
this.user = user;
return this;
}
/**
* Get user
*
* @return user
*
*/
@ApiModelProperty(value = "")
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public Credentials cloudProviderName(String cloudProviderName) {
this.cloudProviderName = cloudProviderName;
return this;
}
/**
* Get cloudProviderName
*
* @return cloudProviderName
*
*/
@ApiModelProperty(value = "")
public String getCloudProviderName() {
return cloudProviderName;
}
public void setCloudProviderName(String cloudProviderName) {
this.cloudProviderName = cloudProviderName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Credentials credentials = (Credentials) o;
return Objects.equals(this.protocol, credentials.protocol)
&& Objects.equals(this.tokenType, credentials.tokenType)
&& Objects.equals(this.token, credentials.token)
&& Objects.equals(this.keys, credentials.keys)
&& Objects.equals(this.user, credentials.user)
&& Objects.equals(this.cloudProviderName, credentials.cloudProviderName);
}
@Override
public int hashCode() {
return Objects.hash(protocol, tokenType, token, keys, user, cloudProviderName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Credentials {\n");
sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n");
sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" keys: ").append(toIndentedString(keys)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append(" cloudProviderName: ").append(toIndentedString(cloudProviderName)).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 String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public Credentials keys(Map<String, String> keys) {
this.keys = keys;
return this;
}
public Credentials putKeysItem(String key, String keysItem) {
if (this.keys == null) {
this.keys = new HashMap<String, String>();
}
this.keys.put(key, keysItem);
return this;
}
/**
* Get keys
* @return keys
**/
@ApiModelProperty(value = "")
public Map<String, String> getKeys() {
return keys;
}
public void setKeys(Map<String, String> keys) {
this.keys = keys;
}
public Credentials user(String user) {
this.user = user;
return this;
}
/**
* Get user
* @return user
**/
@ApiModelProperty(value = "")
public String getUser() {
return user;
}
public void setUser(String user) {
this.user = user;
}
public Credentials cloudProviderName(String cloudProviderName) {
this.cloudProviderName = cloudProviderName;
return this;
}
/**
* Get cloudProviderName
* @return cloudProviderName
**/
@ApiModelProperty(value = "")
public String getCloudProviderName() {
return cloudProviderName;
}
public void setCloudProviderName(String cloudProviderName) {
this.cloudProviderName = cloudProviderName;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Credentials credentials = (Credentials) o;
return Objects.equals(this.protocol, credentials.protocol) &&
Objects.equals(this.tokenType, credentials.tokenType) &&
Objects.equals(this.token, credentials.token) &&
Objects.equals(this.keys, credentials.keys) &&
Objects.equals(this.user, credentials.user) &&
Objects.equals(this.cloudProviderName, credentials.cloudProviderName);
}
@Override
public int hashCode() {
return Objects.hash(protocol, tokenType, token, keys, user, cloudProviderName);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Credentials {\n");
sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n");
sb.append(" tokenType: ").append(toIndentedString(tokenType)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).append("\n");
sb.append(" keys: ").append(toIndentedString(keys)).append("\n");
sb.append(" user: ").append(toIndentedString(user)).append("\n");
sb.append(" cloudProviderName: ").append(toIndentedString(cloudProviderName)).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 ");
}
}
......@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
......@@ -20,9 +19,9 @@ import org.springframework.data.annotation.Id;
* NodeTemplate
*/
@Validated
@JsonInclude(JsonInclude.Include.NON_NULL)
public class NodeTemplate {
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class NodeTemplate {
/**
* @return the id
*/
......@@ -40,364 +39,356 @@ public class NodeTemplate {
@Id
@JsonIgnore
private String id;
@JsonProperty("derived_from")
private String derivedFrom = null;
@JsonProperty("derived_from")
private String derivedFrom = null;
@JsonProperty("properties")
@Valid
private Map<String, Object> properties = null;
@JsonProperty("properties")
@Valid
private Map<String, Object> properties = null;
@JsonProperty("requirements")
@Valid
private List<Map<String, Object>> requirements = null;
@JsonProperty("requirements")
@Valid
private List<Map<String, Object>> requirements = null;
@JsonProperty("interfaces")
@Valid
private Map<String, Object> interfaces = null;
@JsonProperty("interfaces")
@Valid
private Map<String, Object> interfaces = null;
@JsonProperty("capabilities")
@Valid
private Map<String, Object> capabilities = null;
@JsonProperty("capabilities")
@Valid
private Map<String, Object> capabilities = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("directives")
@Valid
private List<String> directives = null;
@JsonProperty("directives")
@Valid
private List<String> directives = null;
@JsonProperty("attributes")
@Valid
private Map<String, Object> attributes = null;
@JsonProperty("attributes")
@Valid
private Map<String, Object> attributes = null;
@JsonProperty("artifacts")
@Valid
private Map<String, Object> artifacts = null;
@JsonProperty("artifacts")
@Valid
private Map<String, Object> artifacts = null;
public NodeTemplate derivedFrom(String derivedFrom) {
this.derivedFrom = derivedFrom;
return this;
}
public NodeTemplate derivedFrom(String derivedFrom) {
this.derivedFrom = derivedFrom;
return this;
}
/**
* Get derivedFrom
*
* @return derivedFrom
*
*/
@ApiModelProperty(value = "")
public String getDerivedFrom() {
return derivedFrom;
}
public void setDerivedFrom(String derivedFrom) {
this.derivedFrom = derivedFrom;
}
public NodeTemplate properties(Map<String, Object> properties) {
this.properties = properties;
return this;
}
public NodeTemplate putPropertiesItem(String key, Object propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<String, Object>();
}
this.properties.put(key, propertiesItem);
return this;
}
/**
* Get properties
*
* @return properties
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getProperties() {
return properties;
}
public void setProperties(Map<String, Object> properties) {
this.properties = properties;
}
/**
* Get derivedFrom
* @return derivedFrom
**/
@ApiModelProperty(value = "")
public NodeTemplate requirements(List<Map<String, Object>> requirements) {
this.requirements = requirements;
return this;
}
public NodeTemplate addRequirementsItem(Map<String, Object> requirementsItem) {
if (this.requirements == null) {
this.requirements = new ArrayList<Map<String, Object>>();
}
this.requirements.add(requirementsItem);
return this;
}
/**
* Get requirements
*
* @return requirements
*
*/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, Object>> getRequirements() {
return requirements;
}
public void setRequirements(List<Map<String, Object>> requirements) {
this.requirements = requirements;
}
public NodeTemplate interfaces(Map<String, Object> interfaces) {
this.interfaces = interfaces;
return this;
}
public NodeTemplate putInterfacesItem(String key, Object interfacesItem) {
if (this.interfaces == null) {
this.interfaces = new HashMap<String, Object>();
}
this.interfaces.put(key, interfacesItem);
return this;
}
/**
* Get interfaces
*
* @return interfaces
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getInterfaces() {
return interfaces;
}
public String getDerivedFrom() {
return derivedFrom;
}
public void setInterfaces(Map<String, Object> interfaces) {
this.interfaces = interfaces;
}
public void setDerivedFrom(String derivedFrom) {
this.derivedFrom = derivedFrom;
}
public NodeTemplate capabilities(Map<String, Object> capabilities) {
this.capabilities = capabilities;
return this;
}
public NodeTemplate properties(Map<String, Object> properties) {
this.properties = properties;
return this;
}
public NodeTemplate putCapabilitiesItem(String key, Object capabilitiesItem) {
if (this.capabilities == null) {
this.capabilities = new HashMap<String, Object>();
}
this.capabilities.put(key, capabilitiesItem);
return this;
public NodeTemplate putPropertiesItem(String key, Object propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<String, Object>();
}
this.properties.put(key, propertiesItem);
return this;
}
/**
* Get capabilities
*
* @return capabilities
*
*/
@ApiModelProperty(value = "")
/**
* Get properties
* @return properties
**/
@ApiModelProperty(value = "")
public Map<String, Object> getCapabilities() {
return capabilities;
}
public void setCapabilities(Map<String, Object> capabilities) {
this.capabilities = capabilities;
}
public Map<String, Object> getProperties() {
return properties;
}
public NodeTemplate type(String type) {
this.type = type;
return this;
}
public void setProperties(Map<String, Object> properties) {
this.properties = properties;
}
/**
* Get type
*
* @return type
*
*/
@ApiModelProperty(value = "")
public NodeTemplate requirements(List<Map<String, Object>> requirements) {
this.requirements = requirements;
return this;
}
public String getType() {
return type;
public NodeTemplate addRequirementsItem(Map<String, Object> requirementsItem) {
if (this.requirements == null) {
this.requirements = new ArrayList<Map<String, Object>>();
}
this.requirements.add(requirementsItem);
return this;
}
public void setType(String type) {
this.type = type;
}
/**
* Get requirements
* @return requirements
**/
@ApiModelProperty(value = "")
public NodeTemplate description(String description) {
this.description = description;
return this;
}
@Valid
/**
* Get description
*
* @return description
*
*/
@ApiModelProperty(value = "")
public List<Map<String, Object>> getRequirements() {
return requirements;
}
public String getDescription() {
return description;
}
public void setRequirements(List<Map<String, Object>> requirements) {
this.requirements = requirements;
}
public void setDescription(String description) {
this.description = description;
}
public NodeTemplate interfaces(Map<String, Object> interfaces) {
this.interfaces = interfaces;
return this;
}
public NodeTemplate directives(List<String> directives) {
this.directives = directives;
return this;
public NodeTemplate putInterfacesItem(String key, Object interfacesItem) {
if (this.interfaces == null) {
this.interfaces = new HashMap<String, Object>();
}
this.interfaces.put(key, interfacesItem);
return this;
}
/**
* Get interfaces
* @return interfaces
**/
@ApiModelProperty(value = "")
public NodeTemplate addDirectivesItem(String directivesItem) {
if (this.directives == null) {
this.directives = new ArrayList<String>();
}
this.directives.add(directivesItem);
return this;
}
/**
* Get directives
*
* @return directives
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getInterfaces() {
return interfaces;
}
public List<String> getDirectives() {
return directives;
}
public void setInterfaces(Map<String, Object> interfaces) {
this.interfaces = interfaces;
}
public void setDirectives(List<String> directives) {
this.directives = directives;
}
public NodeTemplate capabilities(Map<String, Object> capabilities) {
this.capabilities = capabilities;
return this;
}
public NodeTemplate attributes(Map<String, Object> attributes) {
this.attributes = attributes;
return this;
public NodeTemplate putCapabilitiesItem(String key, Object capabilitiesItem) {
if (this.capabilities == null) {
this.capabilities = new HashMap<String, Object>();
}
this.capabilities.put(key, capabilitiesItem);
return this;
}
/**
* Get capabilities
* @return capabilities
**/
@ApiModelProperty(value = "")
public NodeTemplate putAttributesItem(String key, Object attributesItem) {
if (this.attributes == null) {
this.attributes = new HashMap<String, Object>();
}
this.attributes.put(key, attributesItem);
return this;
}
/**
* Get attributes
*
* @return attributes
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getCapabilities() {
return capabilities;
}
public Map<String, Object> getAttributes() {
return attributes;
}
public void setCapabilities(Map<String, Object> capabilities) {
this.capabilities = capabilities;
}
public void setAttributes(Map<String, Object> attributes) {
this.attributes = attributes;
}
public NodeTemplate type(String type) {
this.type = type;
return this;
}
public NodeTemplate artifacts(Map<String, Object> artifacts) {
this.artifacts = artifacts;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(value = "")
public NodeTemplate putArtifactsItem(String key, Object artifactsItem) {
if (this.artifacts == null) {
this.artifacts = new HashMap<String, Object>();
}
this.artifacts.put(key, artifactsItem);
return this;
}
/**
* Get artifacts
*
* @return artifacts
*
*/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public Map<String, Object> getArtifacts() {
return artifacts;
}
public NodeTemplate description(String description) {
this.description = description;
return this;
}
public void setArtifacts(Map<String, Object> artifacts) {
this.artifacts = artifacts;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NodeTemplate nodeTemplate = (NodeTemplate) o;
return Objects.equals(this.derivedFrom, nodeTemplate.derivedFrom)
&& Objects.equals(this.properties, nodeTemplate.properties)
&& Objects.equals(this.requirements, nodeTemplate.requirements)
&& Objects.equals(this.interfaces, nodeTemplate.interfaces)
&& Objects.equals(this.capabilities, nodeTemplate.capabilities)
&& Objects.equals(this.type, nodeTemplate.type)
&& Objects.equals(this.description, nodeTemplate.description)
&& Objects.equals(this.directives, nodeTemplate.directives)
&& Objects.equals(this.attributes, nodeTemplate.attributes)
&& Objects.equals(this.artifacts, nodeTemplate.artifacts);
}
@Override
public int hashCode() {
return Objects.hash(derivedFrom, properties, requirements, interfaces, capabilities, type, description, directives, attributes, artifacts);
}
public String getDescription() {
return description;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NodeTemplate {\n");
sb.append(" derivedFrom: ").append(toIndentedString(derivedFrom)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" requirements: ").append(toIndentedString(requirements)).append("\n");
sb.append(" interfaces: ").append(toIndentedString(interfaces)).append("\n");
sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" directives: ").append(toIndentedString(directives)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" artifacts: ").append(toIndentedString(artifacts)).append("\n");
sb.append("}");
return sb.toString();
}
public void setDescription(String description) {
this.description = description;
}
/**
* 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 NodeTemplate directives(List<String> directives) {
this.directives = directives;
return this;
}
public NodeTemplate addDirectivesItem(String directivesItem) {
if (this.directives == null) {
this.directives = new ArrayList<String>();
}
this.directives.add(directivesItem);
return this;
}
/**
* Get directives
* @return directives
**/
@ApiModelProperty(value = "")
public List<String> getDirectives() {
return directives;
}
public void setDirectives(List<String> directives) {
this.directives = directives;
}
public NodeTemplate attributes(Map<String, Object> attributes) {
this.attributes = attributes;
return this;
}
public NodeTemplate putAttributesItem(String key, Object attributesItem) {
if (this.attributes == null) {
this.attributes = new HashMap<String, Object>();
}
this.attributes.put(key, attributesItem);
return this;
}
/**
* Get attributes
* @return attributes
**/
@ApiModelProperty(value = "")
public Map<String, Object> getAttributes() {
return attributes;
}
public void setAttributes(Map<String, Object> attributes) {
this.attributes = attributes;
}
public NodeTemplate artifacts(Map<String, Object> artifacts) {
this.artifacts = artifacts;
return this;
}
public NodeTemplate putArtifactsItem(String key, Object artifactsItem) {
if (this.artifacts == null) {
this.artifacts = new HashMap<String, Object>();
}
this.artifacts.put(key, artifactsItem);
return this;
}
/**
* Get artifacts
* @return artifacts
**/
@ApiModelProperty(value = "")
public Map<String, Object> getArtifacts() {
return artifacts;
}
public void setArtifacts(Map<String, Object> artifacts) {
this.artifacts = artifacts;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
NodeTemplate nodeTemplate = (NodeTemplate) o;
return Objects.equals(this.derivedFrom, nodeTemplate.derivedFrom) &&
Objects.equals(this.properties, nodeTemplate.properties) &&
Objects.equals(this.requirements, nodeTemplate.requirements) &&
Objects.equals(this.interfaces, nodeTemplate.interfaces) &&
Objects.equals(this.capabilities, nodeTemplate.capabilities) &&
Objects.equals(this.type, nodeTemplate.type) &&
Objects.equals(this.description, nodeTemplate.description) &&
Objects.equals(this.directives, nodeTemplate.directives) &&
Objects.equals(this.attributes, nodeTemplate.attributes) &&
Objects.equals(this.artifacts, nodeTemplate.artifacts);
}
@Override
public int hashCode() {
return Objects.hash(derivedFrom, properties, requirements, interfaces, capabilities, type, description, directives, attributes, artifacts);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NodeTemplate {\n");
sb.append(" derivedFrom: ").append(toIndentedString(derivedFrom)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" requirements: ").append(toIndentedString(requirements)).append("\n");
sb.append(" interfaces: ").append(toIndentedString(interfaces)).append("\n");
sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" directives: ").append(toIndentedString(directives)).append("\n");
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n");
sb.append(" artifacts: ").append(toIndentedString(artifacts)).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 ");
}
}
......@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
......@@ -20,7 +19,8 @@ import org.springframework.data.annotation.Id;
* TopologyTemplate
*/
@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 {
/**
* @return the id
......@@ -39,12 +39,12 @@ public class TopologyTemplate {
@Id
@JsonIgnore
private String id;
@JsonProperty("description")
private String description = null;
@JsonProperty("inputs")
@Valid
private List<Map<String, Object>> inputs = null;
private String inputs = null;
@JsonProperty("node_templates")
@Valid
......@@ -55,20 +55,17 @@ public class TopologyTemplate {
private Map<String, Object> relationshipTemplates = null;
@JsonProperty("outputs")
@Valid
private List<Map<String, Object>> outputs = null;
private String outputs = null;
@JsonProperty("groups")
@Valid
private Map<String, Object> groups = null;
private String groups = null;
@JsonProperty("substitution_mappings")
@Valid
private Map<String, Object> substitutionMappings = null;
private String substitutionMappings = null;
@JsonProperty("policies")
@Valid
private List<Map<String, Object>> policies = null;
private List<String> policies = null;
public TopologyTemplate description(String description) {
this.description = description;
......@@ -90,32 +87,23 @@ public class TopologyTemplate {
this.description = description;
}
public TopologyTemplate inputs(List<Map<String, Object>> inputs) {
public TopologyTemplate inputs(String inputs) {
this.inputs = inputs;
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
* @return inputs
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, Object>> getInputs() {
public String getInputs() {
return inputs;
}
public void setInputs(List<Map<String, Object>> inputs) {
public void setInputs(String inputs) {
this.inputs = inputs;
}
......@@ -176,48 +164,31 @@ public class TopologyTemplate {
this.relationshipTemplates = relationshipTemplates;
}
public TopologyTemplate outputs(List<Map<String, Object>> outputs) {
public TopologyTemplate outputs(String outputs) {
this.outputs = outputs;
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
* @return outputs
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, Object>> getOutputs() {
public String getOutputs() {
return outputs;
}
public void setOutputs(List<Map<String, Object>> outputs) {
public void setOutputs(String outputs) {
this.outputs = outputs;
}
public TopologyTemplate groups(Map<String, Object> groups) {
public TopologyTemplate groups(String groups) {
this.groups = groups;
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
* @return groups
......@@ -225,27 +196,19 @@ public class TopologyTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getGroups() {
public String getGroups() {
return groups;
}
public void setGroups(Map<String, Object> groups) {
public void setGroups(String groups) {
this.groups = groups;
}
public TopologyTemplate substitutionMappings(Map<String, Object> substitutionMappings) {
public TopologyTemplate substitutionMappings(String substitutionMappings) {
this.substitutionMappings = substitutionMappings;
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
* @return substitutionMappings
......@@ -253,22 +216,22 @@ public class TopologyTemplate {
@ApiModelProperty(value = "")
public Map<String, Object> getSubstitutionMappings() {
public String getSubstitutionMappings() {
return substitutionMappings;
}
public void setSubstitutionMappings(Map<String, Object> substitutionMappings) {
public void setSubstitutionMappings(String substitutionMappings) {
this.substitutionMappings = substitutionMappings;
}
public TopologyTemplate policies(List<Map<String, Object>> policies) {
public TopologyTemplate policies(List<String> policies) {
this.policies = policies;
return this;
}
public TopologyTemplate addPoliciesItem(Map<String, Object> policiesItem) {
public TopologyTemplate addPoliciesItem(String policiesItem) {
if (this.policies == null) {
this.policies = new ArrayList<Map<String, Object>>();
this.policies = new ArrayList<String>();
}
this.policies.add(policiesItem);
return this;
......@@ -280,13 +243,12 @@ public class TopologyTemplate {
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, Object>> getPolicies() {
public List<String> getPolicies() {
return policies;
}
public void setPolicies(List<Map<String, Object>> policies) {
public void setPolicies(List<String> policies) {
this.policies = policies;
}
......
......@@ -4,7 +4,6 @@ import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
......@@ -20,8 +19,10 @@ import org.springframework.data.annotation.Id;
* ToscaTemplate
*/
@Validated
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ToscaTemplate {
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
public class ToscaTemplate {
/**
* @return the id
*/
......@@ -39,626 +40,646 @@ public class ToscaTemplate {
@Id
@JsonIgnore
private String id;
@JsonProperty("tosca_definitions_version")
private String toscaDefinitionsVersion = null;
@JsonProperty("tosca_default_namespace")
private String toscaDefaultNamespace = null;
@JsonProperty("tosca_definitions_version")
private String toscaDefinitionsVersion = null;
@JsonProperty("template_name")
private String templateName = null;
@JsonProperty("tosca_default_namespace")
private String toscaDefaultNamespace = null;
@JsonProperty("topology_template")
private TopologyTemplate topologyTemplate = null;
@JsonProperty("template_name")
private String templateName = null;
@JsonProperty("template_author")
private String templateAuthor = null;
@JsonProperty("topology_template")
private TopologyTemplate topologyTemplate = null;
@JsonProperty("template_version")
private String templateVersion = null;
@JsonProperty("template_author")
private String templateAuthor = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("template_version")
private String templateVersion = null;
@JsonProperty("imports")
@Valid
private List<Map<String, Object>> imports = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("dsl_definitions")
@Valid
private Map<String, Object> dslDefinitions = null;
@JsonProperty("imports")
@Valid
private List<Map<String, Object>> imports = null;
@JsonProperty("node_types")
@Valid
private Map<String, Object> nodeTypes = null;
@JsonProperty("dsl_definitions")
@Valid
private Map<String, Object> dslDefinitions = null;
@JsonProperty("relationship_types")
@Valid
private Map<String, Object> relationshipTypes = null;
@JsonProperty("node_types")
@Valid
private Map<String, Object> nodeTypes = null;
@JsonProperty("relationship_templates")
@Valid
private Map<String, Object> relationshipTemplates = null;
@JsonProperty("relationship_types")
@Valid
private Map<String, Object> relationshipTypes = null;
@JsonProperty("capability_types")
@Valid
private Map<String, Object> capabilityTypes = null;
@JsonProperty("relationship_templates")
@Valid
private Map<String, Object> relationshipTemplates = null;
@JsonProperty("artifact_types")
@Valid
private Map<String, Object> artifactTypes = null;
@JsonProperty("capability_types")
@Valid
private Map<String, Object> capabilityTypes = null;
@JsonProperty("data_types")
@Valid
private Map<String, Object> dataTypes = null;
@JsonProperty("artifact_types")
@Valid
private Map<String, Object> artifactTypes = null;
@JsonProperty("interface_types")
@Valid
private Map<String, Object> interfaceTypes = null;
@JsonProperty("data_types")
@Valid
private Map<String, Object> dataTypes = null;
@JsonProperty("policy_types")
@Valid
private Map<String, String> policyTypes = null;
@JsonProperty("interface_types")
@Valid
private Map<String, Object> interfaceTypes = null;
@JsonProperty("group_types")
@Valid
private Map<String, Object> groupTypes = null;
@JsonProperty("policy_types")
@Valid
private Map<String, String> policyTypes = null;
@JsonProperty("repositories")
@Valid
private Map<String, Object> repositories = null;
@JsonProperty("group_types")
@Valid
private Map<String, Object> groupTypes = null;
public ToscaTemplate toscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
return this;
}
@JsonProperty("repositories")
@Valid
private Map<String, Object> repositories = null;
/**
* Get toscaDefinitionsVersion
* @return toscaDefinitionsVersion
**/
@ApiModelProperty(value = "")
public ToscaTemplate toscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
return this;
}
/**
* 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 String getToscaDefaultNamespace() {
return toscaDefaultNamespace;
}
public void setToscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
}
public void setToscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
}
public ToscaTemplate templateName(String templateName) {
this.templateName = templateName;
return this;
}
public ToscaTemplate templateName(String templateName) {
this.templateName = templateName;
return this;
}
/**
* Get templateName
*
* @return templateName
*
*/
@ApiModelProperty(value = "")
/**
* Get templateName
* @return templateName
**/
@ApiModelProperty(value = "")
public String getTemplateName() {
return templateName;
}
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
public String getTemplateName() {
return templateName;
}
public ToscaTemplate topologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
return this;
}
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
/**
* Get topologyTemplate
*
* @return topologyTemplate
*
*/
@ApiModelProperty(value = "")
public ToscaTemplate topologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
return this;
}
/**
* Get topologyTemplate
* @return topologyTemplate
**/
@ApiModelProperty(value = "")
@Valid
@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 TopologyTemplate getTopologyTemplate() {
return topologyTemplate;
}
public void setTopologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
}
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;
}
public ToscaTemplate templateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
/**
* Get templateAuthor
*
* @return templateAuthor
*
*/
@ApiModelProperty(value = "")
public String getTemplateAuthor() {
return templateAuthor;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
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>>();
public void setTemplateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
}
this.imports.add(importsItem);
return this;
}
/**
* Get imports
* @return imports
**/
@ApiModelProperty(value = "")
public ToscaTemplate templateVersion(String templateVersion) {
this.templateVersion = templateVersion;
return this;
}
@Valid
public List<Map<String, Object>> getImports() {
return imports;
}
public void setImports(List<Map<String, Object>> imports) {
this.imports = imports;
}
/**
* Get templateVersion
*
* @return templateVersion
*
*/
@ApiModelProperty(value = "")
public ToscaTemplate dslDefinitions(Map<String, Object> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
return this;
}
public String getTemplateVersion() {
return templateVersion;
}
public ToscaTemplate putDslDefinitionsItem(String key, Object dslDefinitionsItem) {
if (this.dslDefinitions == null) {
this.dslDefinitions = new HashMap<String, Object>();
public void setTemplateVersion(String templateVersion) {
this.templateVersion = templateVersion;
}
this.dslDefinitions.put(key, dslDefinitionsItem);
return this;
}
/**
* Get dslDefinitions
* @return dslDefinitions
**/
@ApiModelProperty(value = "")
public ToscaTemplate description(String description) {
this.description = description;
return this;
}
/**
* Get description
*
* @return description
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getDslDefinitions() {
return dslDefinitions;
}
public void setDslDefinitions(Map<String, Object> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
}
public ToscaTemplate nodeTypes(Map<String, Object> nodeTypes) {
this.nodeTypes = nodeTypes;
return this;
}
public String getDescription() {
return description;
}
public ToscaTemplate putNodeTypesItem(String key, Object nodeTypesItem) {
if (this.nodeTypes == null) {
this.nodeTypes = new HashMap<String, Object>();
public void setDescription(String description) {
this.description = description;
}
this.nodeTypes.put(key, nodeTypesItem);
return this;
}
/**
* Get nodeTypes
* @return nodeTypes
**/
@ApiModelProperty(value = "")
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 imports
*
* @return imports
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getNodeTypes() {
return nodeTypes;
}
public void setNodeTypes(Map<String, Object> nodeTypes) {
this.nodeTypes = nodeTypes;
}
public ToscaTemplate relationshipTypes(Map<String, Object> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
return this;
}
@Valid
public ToscaTemplate putRelationshipTypesItem(String key, Object relationshipTypesItem) {
if (this.relationshipTypes == null) {
this.relationshipTypes = new HashMap<String, Object>();
public List<Map<String, Object>> getImports() {
return imports;
}
this.relationshipTypes.put(key, relationshipTypesItem);
return this;
}
/**
* Get relationshipTypes
* @return relationshipTypes
**/
@ApiModelProperty(value = "")
public void setImports(List<Map<String, Object>> imports) {
this.imports = imports;
}
public ToscaTemplate dslDefinitions(Map<String, Object> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
return this;
}
public Map<String, Object> getRelationshipTypes() {
return relationshipTypes;
}
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 void setRelationshipTypes(Map<String, Object> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
}
/**
* Get dslDefinitions
*
* @return dslDefinitions
*
*/
@ApiModelProperty(value = "")
public ToscaTemplate relationshipTemplates(Map<String, Object> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
return this;
}
public Map<String, Object> getDslDefinitions() {
return dslDefinitions;
}
public ToscaTemplate putRelationshipTemplatesItem(String key, Object relationshipTemplatesItem) {
if (this.relationshipTemplates == null) {
this.relationshipTemplates = new HashMap<String, Object>();
public void setDslDefinitions(Map<String, Object> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
}
this.relationshipTemplates.put(key, relationshipTemplatesItem);
return this;
}
/**
* Get relationshipTemplates
* @return relationshipTemplates
**/
@ApiModelProperty(value = "")
public ToscaTemplate nodeTypes(Map<String, Object> nodeTypes) {
this.nodeTypes = nodeTypes;
return this;
}
public ToscaTemplate putNodeTypesItem(String key, Object nodeTypesItem) {
if (this.nodeTypes == null) {
this.nodeTypes = new HashMap<String, Object>();
}
this.nodeTypes.put(key, nodeTypesItem);
return this;
}
public Map<String, Object> getRelationshipTemplates() {
return relationshipTemplates;
}
/**
* Get nodeTypes
*
* @return nodeTypes
*
*/
@ApiModelProperty(value = "")
public void setRelationshipTemplates(Map<String, Object> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
}
public Map<String, Object> getNodeTypes() {
return nodeTypes;
}
public ToscaTemplate capabilityTypes(Map<String, Object> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
return this;
}
public void setNodeTypes(Map<String, Object> nodeTypes) {
this.nodeTypes = nodeTypes;
}
public ToscaTemplate putCapabilityTypesItem(String key, Object capabilityTypesItem) {
if (this.capabilityTypes == null) {
this.capabilityTypes = new HashMap<String, Object>();
public ToscaTemplate relationshipTypes(Map<String, Object> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
return this;
}
this.capabilityTypes.put(key, capabilityTypesItem);
return this;
}
/**
* Get capabilityTypes
* @return capabilityTypes
**/
@ApiModelProperty(value = "")
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 relationshipTypes
*
* @return relationshipTypes
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getCapabilityTypes() {
return capabilityTypes;
}
public Map<String, Object> getRelationshipTypes() {
return relationshipTypes;
}
public void setCapabilityTypes(Map<String, Object> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
}
public void setRelationshipTypes(Map<String, Object> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
}
public ToscaTemplate artifactTypes(Map<String, Object> artifactTypes) {
this.artifactTypes = artifactTypes;
return this;
}
public ToscaTemplate relationshipTemplates(Map<String, Object> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
return this;
}
public ToscaTemplate putArtifactTypesItem(String key, Object artifactTypesItem) {
if (this.artifactTypes == null) {
this.artifactTypes = new HashMap<String, Object>();
public ToscaTemplate putRelationshipTemplatesItem(String key, Object relationshipTemplatesItem) {
if (this.relationshipTemplates == null) {
this.relationshipTemplates = new HashMap<String, Object>();
}
this.relationshipTemplates.put(key, relationshipTemplatesItem);
return this;
}
this.artifactTypes.put(key, artifactTypesItem);
return this;
}
/**
* Get artifactTypes
* @return artifactTypes
**/
@ApiModelProperty(value = "")
/**
* Get relationshipTemplates
*
* @return relationshipTemplates
*
*/
@ApiModelProperty(value = "")
public Map<String, Object> getRelationshipTemplates() {
return relationshipTemplates;
}
public void setRelationshipTemplates(Map<String, Object> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
}
public Map<String, Object> getArtifactTypes() {
return artifactTypes;
}
public ToscaTemplate capabilityTypes(Map<String, Object> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
return this;
}
public void setArtifactTypes(Map<String, Object> artifactTypes) {
this.artifactTypes = 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 ToscaTemplate dataTypes(Map<String, Object> dataTypes) {
this.dataTypes = dataTypes;
return this;
}
/**
* Get capabilityTypes
*
* @return capabilityTypes
*
*/
@ApiModelProperty(value = "")
public ToscaTemplate putDataTypesItem(String key, Object dataTypesItem) {
if (this.dataTypes == null) {
this.dataTypes = new HashMap<String, Object>();
public Map<String, Object> getCapabilityTypes() {
return capabilityTypes;
}
this.dataTypes.put(key, dataTypesItem);
return this;
}
/**
* Get dataTypes
* @return dataTypes
**/
@ApiModelProperty(value = "")
public void setCapabilityTypes(Map<String, Object> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
}
public ToscaTemplate artifactTypes(Map<String, Object> artifactTypes) {
this.artifactTypes = artifactTypes;
return this;
}
public Map<String, Object> getDataTypes() {
return dataTypes;
}
public ToscaTemplate putArtifactTypesItem(String key, Object artifactTypesItem) {
if (this.artifactTypes == null) {
this.artifactTypes = new HashMap<String, Object>();
}
this.artifactTypes.put(key, artifactTypesItem);
return this;
}
public void setDataTypes(Map<String, Object> dataTypes) {
this.dataTypes = dataTypes;
}
/**
* Get artifactTypes
*
* @return artifactTypes
*
*/
@ApiModelProperty(value = "")
public ToscaTemplate interfaceTypes(Map<String, Object> interfaceTypes) {
this.interfaceTypes = interfaceTypes;
return this;
}
public Map<String, Object> getArtifactTypes() {
return artifactTypes;
}
public ToscaTemplate putInterfaceTypesItem(String key, Object interfaceTypesItem) {
if (this.interfaceTypes == null) {
this.interfaceTypes = new HashMap<String, Object>();
public void setArtifactTypes(Map<String, Object> artifactTypes) {
this.artifactTypes = artifactTypes;
}
this.interfaceTypes.put(key, interfaceTypesItem);
return this;
}
/**
* Get interfaceTypes
* @return interfaceTypes
**/
@ApiModelProperty(value = "")
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;
}
public Map<String, Object> getInterfaceTypes() {
return interfaceTypes;
}
/**
* Get dataTypes
*
* @return dataTypes
*
*/
@ApiModelProperty(value = "")
public void setInterfaceTypes(Map<String, Object> interfaceTypes) {
this.interfaceTypes = interfaceTypes;
}
public Map<String, Object> getDataTypes() {
return dataTypes;
}
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, Object> groupTypes) {
this.groupTypes = groupTypes;
return this;
}
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, 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;
}
/**
* 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 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;
}
/**
* 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, Object> groupTypes) {
this.groupTypes = groupTypes;
return this;
}
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, 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;
}
/**
* 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 ");
}
}
package nl.uva.sne.drip.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
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
@JsonInclude(JsonInclude.Include.NON_NULL)
public class User {
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-11-01T13:58:45.661Z")
/**
* @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) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
public class User {
@Override
public int hashCode() {
return Objects.hash();
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\n");
sb.append("}");
return sb.toString();
if (o == null || getClass() != o.getClass()) {
return false;
}
/**
* 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 ");
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\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 ");
}
}
......@@ -6,21 +6,21 @@
properties:
type: object
additionalProperties:
type: object
type: string
requirements:
type: "array"
items:
type: object
additionalProperties:
type: object
type: object
additionalProperties:
type: string
interfaces:
type: object
additionalProperties:
type: object
type: string
capabilities:
type: object
additionalProperties:
type: object
type: string
type:
type: "string"
description:
......@@ -32,11 +32,11 @@
attributes:
type: object
additionalProperties:
type: object
type: string
artifacts:
type: object
additionalProperties:
type: object
type: string
......
......@@ -4,9 +4,9 @@
description:
type: "string"
inputs:
type: string
type: object
additionalProperties:
type: object
type: string
node_templates:
type: object
additionalProperties:
......@@ -14,22 +14,22 @@
relationship_templates:
type: object
additionalProperties:
type: object
type: string
outputs:
type: string
type: object
additionalProperties:
type: object
type: string
groups:
type: string
type: object
additionalProperties:
type: object
type: string
substitution_mappings:
type: string
type: object
additionalProperties:
type: object
type: string
policies:
type: "array"
items:
type: string
additionalProperties:
type: object
type: object
additionalProperties:
type: string
......@@ -20,39 +20,39 @@
items:
type: object
additionalProperties:
type: object
type: string
dsl_definitions:
type: object
additionalProperties:
type: object
type: string
node_types:
type: object
additionalProperties:
type: object
type: string
relationship_types:
type: object
additionalProperties:
type: object
type: string
relationship_templates:
type: object
additionalProperties:
type: object
type: string
capability_types:
type: object
additionalProperties:
type: object
type: string
artifact_types:
type: object
additionalProperties:
type: object
type: string
data_types:
type: object
additionalProperties:
type: object
type: string
interface_types:
type: object
additionalProperties:
type: object
type: string
policy_types:
type: object
additionalProperties:
......@@ -60,9 +60,9 @@
group_types:
type: object
additionalProperties:
type: object
type: string
repositories:
type: object
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