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

changed types

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