Commit 8d9282a9 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added credential type

parent 8749ae26
package nl.uva.sne.drip.model;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* NodeTemplate
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-10-09T16:44:17.416Z")
public class NodeTemplate {
@JsonProperty("name")
private String name = null;
@JsonProperty("type")
private String type = null;
@JsonProperty("requirements")
@Valid
private List<Map<String, String>> requirements = null;
@JsonProperty("artifacts")
@Valid
private Map<String, String> artifacts = null;
@JsonProperty("properties")
@Valid
private Map<String, String> properties = null;
@JsonProperty("interfaces")
@Valid
private Map<String, String> interfaces = null;
@JsonProperty("capabilities")
@Valid
private Map<String, String> capabilities = null;
@JsonProperty("workflows")
@Valid
private Map<String, String> workflows = null;
public NodeTemplate name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public NodeTemplate type(String type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(value = "")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public NodeTemplate requirements(List<Map<String, String>> requirements) {
this.requirements = requirements;
return this;
}
public NodeTemplate addRequirementsItem(Map<String, String> requirementsItem) {
if (this.requirements == null) {
this.requirements = new ArrayList<Map<String, String>>();
}
this.requirements.add(requirementsItem);
return this;
}
/**
* Get requirements
* @return requirements
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, String>> getRequirements() {
return requirements;
}
public void setRequirements(List<Map<String, String>> requirements) {
this.requirements = requirements;
}
public NodeTemplate artifacts(Map<String, String> artifacts) {
this.artifacts = artifacts;
return this;
}
public NodeTemplate putArtifactsItem(String key, String artifactsItem) {
if (this.artifacts == null) {
this.artifacts = new HashMap<String, String>();
}
this.artifacts.put(key, artifactsItem);
return this;
}
/**
* Get artifacts
* @return artifacts
**/
@ApiModelProperty(value = "")
public Map<String, String> getArtifacts() {
return artifacts;
}
public void setArtifacts(Map<String, String> artifacts) {
this.artifacts = artifacts;
}
public NodeTemplate properties(Map<String, String> properties) {
this.properties = properties;
return this;
}
public NodeTemplate putPropertiesItem(String key, String propertiesItem) {
if (this.properties == null) {
this.properties = new HashMap<String, String>();
}
this.properties.put(key, propertiesItem);
return this;
}
/**
* Get properties
* @return properties
**/
@ApiModelProperty(value = "")
public Map<String, String> getProperties() {
return properties;
}
public void setProperties(Map<String, String> properties) {
this.properties = properties;
}
public NodeTemplate interfaces(Map<String, String> interfaces) {
this.interfaces = interfaces;
return this;
}
public NodeTemplate putInterfacesItem(String key, String interfacesItem) {
if (this.interfaces == null) {
this.interfaces = new HashMap<String, String>();
}
this.interfaces.put(key, interfacesItem);
return this;
}
/**
* Get interfaces
* @return interfaces
**/
@ApiModelProperty(value = "")
public Map<String, String> getInterfaces() {
return interfaces;
}
public void setInterfaces(Map<String, String> interfaces) {
this.interfaces = interfaces;
}
public NodeTemplate capabilities(Map<String, String> capabilities) {
this.capabilities = capabilities;
return this;
}
public NodeTemplate putCapabilitiesItem(String key, String capabilitiesItem) {
if (this.capabilities == null) {
this.capabilities = new HashMap<String, String>();
}
this.capabilities.put(key, capabilitiesItem);
return this;
}
/**
* Get capabilities
* @return capabilities
**/
@ApiModelProperty(value = "")
public Map<String, String> getCapabilities() {
return capabilities;
}
public void setCapabilities(Map<String, String> capabilities) {
this.capabilities = capabilities;
}
public NodeTemplate workflows(Map<String, String> workflows) {
this.workflows = workflows;
return this;
}
public NodeTemplate putWorkflowsItem(String key, String workflowsItem) {
if (this.workflows == null) {
this.workflows = new HashMap<String, String>();
}
this.workflows.put(key, workflowsItem);
return this;
}
/**
* Get workflows
* @return workflows
**/
@ApiModelProperty(value = "")
public Map<String, String> getWorkflows() {
return workflows;
}
public void setWorkflows(Map<String, String> workflows) {
this.workflows = workflows;
}
@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.name, nodeTemplate.name) &&
Objects.equals(this.type, nodeTemplate.type) &&
Objects.equals(this.requirements, nodeTemplate.requirements) &&
Objects.equals(this.artifacts, nodeTemplate.artifacts) &&
Objects.equals(this.properties, nodeTemplate.properties) &&
Objects.equals(this.interfaces, nodeTemplate.interfaces) &&
Objects.equals(this.capabilities, nodeTemplate.capabilities) &&
Objects.equals(this.workflows, nodeTemplate.workflows);
}
@Override
public int hashCode() {
return Objects.hash(name, type, requirements, artifacts, properties, interfaces, capabilities, workflows);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class NodeTemplate {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" requirements: ").append(toIndentedString(requirements)).append("\n");
sb.append(" artifacts: ").append(toIndentedString(artifacts)).append("\n");
sb.append(" properties: ").append(toIndentedString(properties)).append("\n");
sb.append(" interfaces: ").append(toIndentedString(interfaces)).append("\n");
sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n");
sb.append(" workflows: ").append(toIndentedString(workflows)).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 java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* TopologyTemplate
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-10-09T16:44:17.416Z")
public class TopologyTemplate {
@JsonProperty("description")
private String description = null;
@JsonProperty("inputs")
@Valid
private List<Map<String, String>> inputs = null;
@JsonProperty("policies")
@Valid
private List<Map<String, String>> policies = null;
@JsonProperty("outputs")
@Valid
private List<Map<String, String>> outputs = null;
@JsonProperty("node_templates")
private NodeTemplate nodeTemplates = null;
@JsonProperty("relationship_templates")
@Valid
private Map<String, String> relationshipTemplates = null;
@JsonProperty("groups")
@Valid
private Map<String, String> groups = null;
@JsonProperty("substitution_mappings")
@Valid
private Map<String, String> substitutionMappings = null;
public TopologyTemplate description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public TopologyTemplate inputs(List<Map<String, String>> inputs) {
this.inputs = inputs;
return this;
}
public TopologyTemplate addInputsItem(Map<String, String> inputsItem) {
if (this.inputs == null) {
this.inputs = new ArrayList<Map<String, String>>();
}
this.inputs.add(inputsItem);
return this;
}
/**
* Get inputs
* @return inputs
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, String>> getInputs() {
return inputs;
}
public void setInputs(List<Map<String, String>> inputs) {
this.inputs = inputs;
}
public TopologyTemplate policies(List<Map<String, String>> policies) {
this.policies = policies;
return this;
}
public TopologyTemplate addPoliciesItem(Map<String, String> policiesItem) {
if (this.policies == null) {
this.policies = new ArrayList<Map<String, String>>();
}
this.policies.add(policiesItem);
return this;
}
/**
* Get policies
* @return policies
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, String>> getPolicies() {
return policies;
}
public void setPolicies(List<Map<String, String>> policies) {
this.policies = policies;
}
public TopologyTemplate outputs(List<Map<String, String>> outputs) {
this.outputs = outputs;
return this;
}
public TopologyTemplate addOutputsItem(Map<String, String> outputsItem) {
if (this.outputs == null) {
this.outputs = new ArrayList<Map<String, String>>();
}
this.outputs.add(outputsItem);
return this;
}
/**
* Get outputs
* @return outputs
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, String>> getOutputs() {
return outputs;
}
public void setOutputs(List<Map<String, String>> outputs) {
this.outputs = outputs;
}
public TopologyTemplate nodeTemplates(NodeTemplate nodeTemplates) {
this.nodeTemplates = nodeTemplates;
return this;
}
/**
* Get nodeTemplates
* @return nodeTemplates
**/
@ApiModelProperty(value = "")
@Valid
public NodeTemplate getNodeTemplates() {
return nodeTemplates;
}
public void setNodeTemplates(NodeTemplate nodeTemplates) {
this.nodeTemplates = nodeTemplates;
}
public TopologyTemplate relationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
return this;
}
public TopologyTemplate putRelationshipTemplatesItem(String key, String relationshipTemplatesItem) {
if (this.relationshipTemplates == null) {
this.relationshipTemplates = new HashMap<String, String>();
}
this.relationshipTemplates.put(key, relationshipTemplatesItem);
return this;
}
/**
* Get relationshipTemplates
* @return relationshipTemplates
**/
@ApiModelProperty(value = "")
public Map<String, String> getRelationshipTemplates() {
return relationshipTemplates;
}
public void setRelationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
}
public TopologyTemplate groups(Map<String, String> groups) {
this.groups = groups;
return this;
}
public TopologyTemplate putGroupsItem(String key, String groupsItem) {
if (this.groups == null) {
this.groups = new HashMap<String, String>();
}
this.groups.put(key, groupsItem);
return this;
}
/**
* Get groups
* @return groups
**/
@ApiModelProperty(value = "")
public Map<String, String> getGroups() {
return groups;
}
public void setGroups(Map<String, String> groups) {
this.groups = groups;
}
public TopologyTemplate substitutionMappings(Map<String, String> substitutionMappings) {
this.substitutionMappings = substitutionMappings;
return this;
}
public TopologyTemplate putSubstitutionMappingsItem(String key, String substitutionMappingsItem) {
if (this.substitutionMappings == null) {
this.substitutionMappings = new HashMap<String, String>();
}
this.substitutionMappings.put(key, substitutionMappingsItem);
return this;
}
/**
* Get substitutionMappings
* @return substitutionMappings
**/
@ApiModelProperty(value = "")
public Map<String, String> getSubstitutionMappings() {
return substitutionMappings;
}
public void setSubstitutionMappings(Map<String, String> substitutionMappings) {
this.substitutionMappings = substitutionMappings;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TopologyTemplate topologyTemplate = (TopologyTemplate) o;
return Objects.equals(this.description, topologyTemplate.description) &&
Objects.equals(this.inputs, topologyTemplate.inputs) &&
Objects.equals(this.policies, topologyTemplate.policies) &&
Objects.equals(this.outputs, topologyTemplate.outputs) &&
Objects.equals(this.nodeTemplates, topologyTemplate.nodeTemplates) &&
Objects.equals(this.relationshipTemplates, topologyTemplate.relationshipTemplates) &&
Objects.equals(this.groups, topologyTemplate.groups) &&
Objects.equals(this.substitutionMappings, topologyTemplate.substitutionMappings);
}
@Override
public int hashCode() {
return Objects.hash(description, inputs, policies, outputs, nodeTemplates, relationshipTemplates, groups, substitutionMappings);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TopologyTemplate {\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" inputs: ").append(toIndentedString(inputs)).append("\n");
sb.append(" policies: ").append(toIndentedString(policies)).append("\n");
sb.append(" outputs: ").append(toIndentedString(outputs)).append("\n");
sb.append(" nodeTemplates: ").append(toIndentedString(nodeTemplates)).append("\n");
sb.append(" relationshipTemplates: ").append(toIndentedString(relationshipTemplates)).append("\n");
sb.append(" groups: ").append(toIndentedString(groups)).append("\n");
sb.append(" substitutionMappings: ").append(toIndentedString(substitutionMappings)).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 java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;
import javax.validation.constraints.*;
/**
* ToscaTemplate
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-10-09T16:44:17.416Z")
public class ToscaTemplate {
@JsonProperty("tosca_definitions_version")
private String toscaDefinitionsVersion = null;
@JsonProperty("tosca_default_namespace")
private String toscaDefaultNamespace = null;
@JsonProperty("template_name")
private String templateName = null;
@JsonProperty("imports")
@Valid
private List<Map<String, String>> imports = null;
@JsonProperty("repositories")
@Valid
private List<Map<String, String>> repositories = null;
@JsonProperty("dsl_definitions")
@Valid
private Map<String, String> dslDefinitions = null;
@JsonProperty("node_types")
@Valid
private Map<String, String> nodeTypes = null;
@JsonProperty("topology_template")
private TopologyTemplate topologyTemplate = null;
@JsonProperty("relationship_types")
@Valid
private Map<String, String> relationshipTypes = null;
@JsonProperty("relationship_templates")
@Valid
private Map<String, String> relationshipTemplates = null;
@JsonProperty("capability_types")
@Valid
private Map<String, String> capabilityTypes = null;
@JsonProperty("artifact_types")
@Valid
private Map<String, String> artifactTypes = null;
@JsonProperty("data_types")
@Valid
private Map<String, String> dataTypes = null;
@JsonProperty("interface_types")
@Valid
private Map<String, String> interfaceTypes = null;
@JsonProperty("policy_types")
@Valid
private Map<String, String> policyTypes = null;
@JsonProperty("group_types")
@Valid
private Map<String, String> groupTypes = null;
@JsonProperty("description")
private String description = null;
@JsonProperty("template_author")
private String templateAuthor = null;
public ToscaTemplate toscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
return this;
}
/**
* Get toscaDefinitionsVersion
* @return toscaDefinitionsVersion
**/
@ApiModelProperty(value = "")
public String getToscaDefinitionsVersion() {
return toscaDefinitionsVersion;
}
public void setToscaDefinitionsVersion(String toscaDefinitionsVersion) {
this.toscaDefinitionsVersion = toscaDefinitionsVersion;
}
public ToscaTemplate toscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
return this;
}
/**
* Get toscaDefaultNamespace
* @return toscaDefaultNamespace
**/
@ApiModelProperty(value = "")
public String getToscaDefaultNamespace() {
return toscaDefaultNamespace;
}
public void setToscaDefaultNamespace(String toscaDefaultNamespace) {
this.toscaDefaultNamespace = toscaDefaultNamespace;
}
public ToscaTemplate templateName(String templateName) {
this.templateName = templateName;
return this;
}
/**
* Get templateName
* @return templateName
**/
@ApiModelProperty(value = "")
public String getTemplateName() {
return templateName;
}
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
public ToscaTemplate imports(List<Map<String, String>> imports) {
this.imports = imports;
return this;
}
public ToscaTemplate addImportsItem(Map<String, String> importsItem) {
if (this.imports == null) {
this.imports = new ArrayList<Map<String, String>>();
}
this.imports.add(importsItem);
return this;
}
/**
* Get imports
* @return imports
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, String>> getImports() {
return imports;
}
public void setImports(List<Map<String, String>> imports) {
this.imports = imports;
}
public ToscaTemplate repositories(List<Map<String, String>> repositories) {
this.repositories = repositories;
return this;
}
public ToscaTemplate addRepositoriesItem(Map<String, String> repositoriesItem) {
if (this.repositories == null) {
this.repositories = new ArrayList<Map<String, String>>();
}
this.repositories.add(repositoriesItem);
return this;
}
/**
* Get repositories
* @return repositories
**/
@ApiModelProperty(value = "")
@Valid
public List<Map<String, String>> getRepositories() {
return repositories;
}
public void setRepositories(List<Map<String, String>> repositories) {
this.repositories = repositories;
}
public ToscaTemplate dslDefinitions(Map<String, String> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
return this;
}
public ToscaTemplate putDslDefinitionsItem(String key, String dslDefinitionsItem) {
if (this.dslDefinitions == null) {
this.dslDefinitions = new HashMap<String, String>();
}
this.dslDefinitions.put(key, dslDefinitionsItem);
return this;
}
/**
* Get dslDefinitions
* @return dslDefinitions
**/
@ApiModelProperty(value = "")
public Map<String, String> getDslDefinitions() {
return dslDefinitions;
}
public void setDslDefinitions(Map<String, String> dslDefinitions) {
this.dslDefinitions = dslDefinitions;
}
public ToscaTemplate nodeTypes(Map<String, String> nodeTypes) {
this.nodeTypes = nodeTypes;
return this;
}
public ToscaTemplate putNodeTypesItem(String key, String nodeTypesItem) {
if (this.nodeTypes == null) {
this.nodeTypes = new HashMap<String, String>();
}
this.nodeTypes.put(key, nodeTypesItem);
return this;
}
/**
* Get nodeTypes
* @return nodeTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getNodeTypes() {
return nodeTypes;
}
public void setNodeTypes(Map<String, String> nodeTypes) {
this.nodeTypes = nodeTypes;
}
public ToscaTemplate topologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
return this;
}
/**
* Get topologyTemplate
* @return topologyTemplate
**/
@ApiModelProperty(value = "")
@Valid
public TopologyTemplate getTopologyTemplate() {
return topologyTemplate;
}
public void setTopologyTemplate(TopologyTemplate topologyTemplate) {
this.topologyTemplate = topologyTemplate;
}
public ToscaTemplate relationshipTypes(Map<String, String> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
return this;
}
public ToscaTemplate putRelationshipTypesItem(String key, String relationshipTypesItem) {
if (this.relationshipTypes == null) {
this.relationshipTypes = new HashMap<String, String>();
}
this.relationshipTypes.put(key, relationshipTypesItem);
return this;
}
/**
* Get relationshipTypes
* @return relationshipTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getRelationshipTypes() {
return relationshipTypes;
}
public void setRelationshipTypes(Map<String, String> relationshipTypes) {
this.relationshipTypes = relationshipTypes;
}
public ToscaTemplate relationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
return this;
}
public ToscaTemplate putRelationshipTemplatesItem(String key, String relationshipTemplatesItem) {
if (this.relationshipTemplates == null) {
this.relationshipTemplates = new HashMap<String, String>();
}
this.relationshipTemplates.put(key, relationshipTemplatesItem);
return this;
}
/**
* Get relationshipTemplates
* @return relationshipTemplates
**/
@ApiModelProperty(value = "")
public Map<String, String> getRelationshipTemplates() {
return relationshipTemplates;
}
public void setRelationshipTemplates(Map<String, String> relationshipTemplates) {
this.relationshipTemplates = relationshipTemplates;
}
public ToscaTemplate capabilityTypes(Map<String, String> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
return this;
}
public ToscaTemplate putCapabilityTypesItem(String key, String capabilityTypesItem) {
if (this.capabilityTypes == null) {
this.capabilityTypes = new HashMap<String, String>();
}
this.capabilityTypes.put(key, capabilityTypesItem);
return this;
}
/**
* Get capabilityTypes
* @return capabilityTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getCapabilityTypes() {
return capabilityTypes;
}
public void setCapabilityTypes(Map<String, String> capabilityTypes) {
this.capabilityTypes = capabilityTypes;
}
public ToscaTemplate artifactTypes(Map<String, String> artifactTypes) {
this.artifactTypes = artifactTypes;
return this;
}
public ToscaTemplate putArtifactTypesItem(String key, String artifactTypesItem) {
if (this.artifactTypes == null) {
this.artifactTypes = new HashMap<String, String>();
}
this.artifactTypes.put(key, artifactTypesItem);
return this;
}
/**
* Get artifactTypes
* @return artifactTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getArtifactTypes() {
return artifactTypes;
}
public void setArtifactTypes(Map<String, String> artifactTypes) {
this.artifactTypes = artifactTypes;
}
public ToscaTemplate dataTypes(Map<String, String> dataTypes) {
this.dataTypes = dataTypes;
return this;
}
public ToscaTemplate putDataTypesItem(String key, String dataTypesItem) {
if (this.dataTypes == null) {
this.dataTypes = new HashMap<String, String>();
}
this.dataTypes.put(key, dataTypesItem);
return this;
}
/**
* Get dataTypes
* @return dataTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getDataTypes() {
return dataTypes;
}
public void setDataTypes(Map<String, String> dataTypes) {
this.dataTypes = dataTypes;
}
public ToscaTemplate interfaceTypes(Map<String, String> interfaceTypes) {
this.interfaceTypes = interfaceTypes;
return this;
}
public ToscaTemplate putInterfaceTypesItem(String key, String interfaceTypesItem) {
if (this.interfaceTypes == null) {
this.interfaceTypes = new HashMap<String, String>();
}
this.interfaceTypes.put(key, interfaceTypesItem);
return this;
}
/**
* Get interfaceTypes
* @return interfaceTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getInterfaceTypes() {
return interfaceTypes;
}
public void setInterfaceTypes(Map<String, String> 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, String> groupTypes) {
this.groupTypes = groupTypes;
return this;
}
public ToscaTemplate putGroupTypesItem(String key, String groupTypesItem) {
if (this.groupTypes == null) {
this.groupTypes = new HashMap<String, String>();
}
this.groupTypes.put(key, groupTypesItem);
return this;
}
/**
* Get groupTypes
* @return groupTypes
**/
@ApiModelProperty(value = "")
public Map<String, String> getGroupTypes() {
return groupTypes;
}
public void setGroupTypes(Map<String, String> groupTypes) {
this.groupTypes = groupTypes;
}
public ToscaTemplate description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public ToscaTemplate templateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
return this;
}
/**
* Get templateAuthor
* @return templateAuthor
**/
@ApiModelProperty(value = "")
public String getTemplateAuthor() {
return templateAuthor;
}
public void setTemplateAuthor(String templateAuthor) {
this.templateAuthor = templateAuthor;
}
@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.imports, toscaTemplate.imports) &&
Objects.equals(this.repositories, toscaTemplate.repositories) &&
Objects.equals(this.dslDefinitions, toscaTemplate.dslDefinitions) &&
Objects.equals(this.nodeTypes, toscaTemplate.nodeTypes) &&
Objects.equals(this.topologyTemplate, toscaTemplate.topologyTemplate) &&
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.description, toscaTemplate.description) &&
Objects.equals(this.templateAuthor, toscaTemplate.templateAuthor);
}
@Override
public int hashCode() {
return Objects.hash(toscaDefinitionsVersion, toscaDefaultNamespace, templateName, imports, repositories, dslDefinitions, nodeTypes, topologyTemplate, relationshipTypes, relationshipTemplates, capabilityTypes, artifactTypes, dataTypes, interfaceTypes, policyTypes, groupTypes, description, templateAuthor);
}
@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(" imports: ").append(toIndentedString(imports)).append("\n");
sb.append(" repositories: ").append(toIndentedString(repositories)).append("\n");
sb.append(" dslDefinitions: ").append(toIndentedString(dslDefinitions)).append("\n");
sb.append(" nodeTypes: ").append(toIndentedString(nodeTypes)).append("\n");
sb.append(" topologyTemplate: ").append(toIndentedString(topologyTemplate)).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(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" templateAuthor: ").append(toIndentedString(templateAuthor)).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 ");
}
}
......@@ -13,225 +13,219 @@ import javax.validation.constraints.*;
* User
*/
@Validated
@javax.annotation.Generated(value = "nl.uva.sne.drip.codegen.languages.SpringCodegen", date = "2019-10-09T14:00:37.436Z")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-10-09T16:44:17.416Z")
public class User {
public class User {
@JsonProperty("id")
private Long id = null;
@JsonProperty("id")
private Long id = null;
@JsonProperty("username")
private String username = null;
@JsonProperty("username")
private String username = null;
@JsonProperty("firstName")
private String firstName = null;
@JsonProperty("firstName")
private String firstName = null;
@JsonProperty("lastName")
private String lastName = null;
@JsonProperty("lastName")
private String lastName = null;
@JsonProperty("email")
private String email = null;
@JsonProperty("email")
private String email = null;
@JsonProperty("password")
private String password = null;
@JsonProperty("password")
private String password = null;
@JsonProperty("userStatus")
private Integer userStatus = null;
@JsonProperty("userStatus")
private Integer userStatus = null;
public User id(Long id) {
this.id = id;
return this;
}
public User id(Long id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(value = "")
/**
* Get id
*
* @return id
*
*/
@ApiModelProperty(value = "")
public Long getId() {
return id;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public void setId(Long id) {
this.id = id;
}
public User username(String username) {
this.username = username;
return this;
}
public User username(String username) {
this.username = username;
return this;
}
/**
* Get username
*
* @return username
*
*/
@ApiModelProperty(value = "")
/**
* Get username
* @return username
**/
@ApiModelProperty(value = "")
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUsername() {
return username;
}
public User firstName(String firstName) {
this.firstName = firstName;
return this;
}
public void setUsername(String username) {
this.username = username;
}
/**
* Get firstName
*
* @return firstName
*
*/
@ApiModelProperty(value = "")
public User firstName(String firstName) {
this.firstName = firstName;
return this;
}
public String getFirstName() {
return firstName;
}
/**
* Get firstName
* @return firstName
**/
@ApiModelProperty(value = "")
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public User lastName(String lastName) {
this.lastName = lastName;
return this;
}
public String getFirstName() {
return firstName;
}
/**
* Get lastName
*
* @return lastName
*
*/
@ApiModelProperty(value = "")
public void setFirstName(String firstName) {
this.firstName = firstName;
}
public String getLastName() {
return lastName;
}
public User lastName(String lastName) {
this.lastName = lastName;
return this;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public User email(String email) {
this.email = email;
return this;
}
/**
* Get email
*
* @return email
*
*/
@ApiModelProperty(value = "")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public User password(String password) {
this.password = password;
return this;
}
/**
* Get lastName
* @return lastName
**/
@ApiModelProperty(value = "")
/**
* Get password
*
* @return password
*
*/
@ApiModelProperty(value = "")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public User userStatus(Integer userStatus) {
this.userStatus = userStatus;
return this;
}
/**
* User Status
*
* @return userStatus
*
*/
@ApiModelProperty(value = "User Status")
public Integer getUserStatus() {
return userStatus;
}
public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
User user = (User) o;
return Objects.equals(this.id, user.id)
&& Objects.equals(this.username, user.username)
&& Objects.equals(this.firstName, user.firstName)
&& Objects.equals(this.lastName, user.lastName)
&& Objects.equals(this.email, user.email)
&& Objects.equals(this.password, user.password)
&& Objects.equals(this.userStatus, user.userStatus);
}
@Override
public int hashCode() {
return Objects.hash(id, username, firstName, lastName, email, password, userStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).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 getLastName() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName = lastName;
}
public User email(String email) {
this.email = email;
return this;
}
/**
* Get email
* @return email
**/
@ApiModelProperty(value = "")
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public User password(String password) {
this.password = password;
return this;
}
/**
* Get password
* @return password
**/
@ApiModelProperty(value = "")
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public User userStatus(Integer userStatus) {
this.userStatus = userStatus;
return this;
}
/**
* User Status
* @return userStatus
**/
@ApiModelProperty(value = "User Status")
public Integer getUserStatus() {
return userStatus;
}
public void setUserStatus(Integer userStatus) {
this.userStatus = userStatus;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
User user = (User) o;
return Objects.equals(this.id, user.id) &&
Objects.equals(this.username, user.username) &&
Objects.equals(this.firstName, user.firstName) &&
Objects.equals(this.lastName, user.lastName) &&
Objects.equals(this.email, user.email) &&
Objects.equals(this.password, user.password) &&
Objects.equals(this.userStatus, user.userStatus);
}
@Override
public int hashCode() {
return Objects.hash(id, username, firstName, lastName, email, password, userStatus);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class User {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" username: ").append(toIndentedString(username)).append("\n");
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" password: ").append(toIndentedString(password)).append("\n");
sb.append(" userStatus: ").append(toIndentedString(userStatus)).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 ");
}
}
......@@ -116,6 +116,189 @@ paths:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/planner/plan/{id}:
get:
summary: "plan tosca template"
description: "Returns the ID of the planed topolog template"
produces:
- "text/plain"
parameters:
- name: "id"
in: "path"
description: "ID of topolog template to plan"
required: true
type: "integer"
format: "int64"
responses:
200:
description: "successful operation"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/planner/{id}:
get:
summary: "get the plan tosca template"
description: "Returns the plan topolog template"
produces:
- "text/plain"
parameters:
- name: "id"
in: "path"
description: "ID of topolog template plan"
required: true
type: "integer"
format: "int64"
responses:
200:
description: "successful operation"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/provisioner/provision/{id}:
get:
summary: "provision tosca template"
description: "Returns the provision ID"
produces:
- "text/plain"
parameters:
- name: "id"
in: "path"
description: "ID of topolog template to plan"
required: true
type: "integer"
format: "int64"
responses:
200:
description: "successful operation"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/provisioner/{id}:
get:
summary: "the provisioned tosca template"
description: "Returns the provisioned tosca template"
produces:
- "text/plain"
parameters:
- name: "id"
in: "path"
description: "ID of topolog template to plan"
required: true
type: "integer"
format: "int64"
responses:
200:
description: "successful operation"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/deployer/deploy/{id}:
get:
summary: "deploy the software tosca template"
description: "Returns the deployment ID"
produces:
- "text/plain"
parameters:
- name: "id"
in: "path"
description: "ID of topolog template to deploy"
required: true
type: "integer"
format: "int64"
responses:
200:
description: "successful operation"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/deployer/{id}:
get:
summary: "get the deployment topolog template"
description: "Returns the deployment topolog template"
produces:
- "text/plain"
parameters:
- name: "id"
in: "path"
description: "ID of topolog template to deploy"
required: true
type: "integer"
format: "int64"
responses:
200:
description: "successful operation"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- drip_auth:
- "write:ToscaTemplate"
- "read:ToscaTemplate"
/credential:
post:
summary: "Create credentials"
description: "Creates credentials"
produces:
- "application/json"
consumes:
- "application/json"
parameters:
- in: "body"
name: "body"
description: "Created user object"
required: true
schema:
$ref: "#/definitions/Credentials"
responses:
200:
description: "successful operation"
400:
description: "Invalid ID supplied"
404:
description: "ToscaTemplate not found"
405:
description: "Invalid input"
security:
- drip_auth:
- "admin:User"
/user:
post:
summary: "Create user"
......@@ -400,7 +583,7 @@ definitions:
name:
type: "string"
type:
type: "string"
type: "string"
requirements:
type: "array"
items:
......@@ -427,7 +610,23 @@ definitions:
type: object
additionalProperties:
type: string
Credentials:
type: "object"
properties:
protocol:
type: "string"
token_type:
type: "string"
token:
type: "string"
keys:
type: object
additionalProperties:
type: string
user:
type: "string"
cloud_provider_name:
type: "string"
externalDocs:
description: "Find out more about DRIP"
url: "https://github.com/QCAPI-DRIP/DRIP-integration/wiki"
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