Commit b8838009 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added Provisioner type

parent 5e5868ec
package nl.uva.sne.drip.model;
import java.util.Objects;
import org.springframework.validation.annotation.Validated;
/**
* Provisioner
*/
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-12-26T14:52:47.859Z")
public class Provisioner {
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return Objects.hash();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Provisioner {\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 ");
}
}
......@@ -136,8 +136,4 @@ public class DRIPService {
}
private Map<String, Object> getBestProvisionInterfaceDefinitions(List<Map<String, Object>> result) {
return result.get(0);
}
}
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package nl.uva.sne.drip.service;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import nl.uva.sne.drip.dao.CredentialDAO;
import nl.uva.sne.drip.model.Provisioner;
import nl.uva.sne.drip.model.tosca.Credential;
/**
*
* @author S. Koulouzis
*/
@Service
public class ProvisionerService {
public List<Provisioner> findAll() {
List<Provisioner> all = new ArrayList<>();
Provisioner provisioner = new Provisioner();
provisioner.
all.add(provisioner);
return all;
}
}
Provisioner:
type: "object"
properties:
name:
type: "string"
version:
type: "string"
description:
type: "string"
tosca_interface_type:
type: "string"
Provisioner:
type: "object"
properties:
name:
type: "string"
version:
type: "string"
description:
type: "string"
tosca_interface_type:
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