-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from indigo-dc/develop
Integrate other 1st release features
- Loading branch information
Showing
37 changed files
with
1,536 additions
and
336 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/main/java/it/reply/orchestrator/dto/CloudProviderEndpoint.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package it.reply.orchestrator.dto; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* This class holds information to connect (and authenticate) to a CloudProvider. | ||
* | ||
* @author l.biava | ||
* | ||
*/ | ||
public class CloudProviderEndpoint implements Serializable { | ||
|
||
private static final long serialVersionUID = -2585914648218602033L; | ||
|
||
public enum IaaSType { | ||
// @formatter:off | ||
OPENSTACK, OPENNEBULA | ||
// @formatter:on | ||
} | ||
|
||
private String imEndpoint; | ||
private String cpEndpoint; | ||
private IaaSType iaasType; | ||
|
||
public String getImEndpoint() { | ||
return imEndpoint; | ||
} | ||
|
||
public void setImEndpoint(String imEndpoint) { | ||
this.imEndpoint = imEndpoint; | ||
} | ||
|
||
public String getCpEndpoint() { | ||
return cpEndpoint; | ||
} | ||
|
||
public void setCpEndpoint(String cpEndpoint) { | ||
this.cpEndpoint = cpEndpoint; | ||
} | ||
|
||
public IaaSType getIaasType() { | ||
return iaasType; | ||
} | ||
|
||
public void setIaasType(IaaSType iaasType) { | ||
this.iaasType = iaasType; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "CloudProviderEndpoint [imEndpoint=" + imEndpoint + ", cpEndpoint=" + cpEndpoint | ||
+ ", iaasType=" + iaasType + "]"; | ||
} | ||
|
||
} |
120 changes: 120 additions & 0 deletions
120
src/main/java/it/reply/orchestrator/dto/cmdb/CmdbHasManyList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
package it.reply.orchestrator.dto.cmdb; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
import org.apache.commons.lang.builder.EqualsBuilder; | ||
import org.apache.commons.lang.builder.HashCodeBuilder; | ||
import org.apache.commons.lang.builder.ToStringBuilder; | ||
|
||
import java.util.ArrayList; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import javax.annotation.Generated; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@Generated("org.jsonschema2pojo") | ||
@JsonPropertyOrder({ "total_rows", "offset", "rows" }) | ||
public class CmdbHasManyList<ROWT> { | ||
|
||
@JsonProperty("total_rows") | ||
private Long totalRows; | ||
@JsonProperty("offset") | ||
private Long offset; | ||
@JsonProperty("rows") | ||
private List<ROWT> rows = new ArrayList<>(); | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
@JsonProperty("total_rows") | ||
public Long getTotalRows() { | ||
return totalRows; | ||
} | ||
|
||
@JsonProperty("total_rows") | ||
public void setTotalRows(Long totalRows) { | ||
this.totalRows = totalRows; | ||
} | ||
|
||
public CmdbHasManyList<ROWT> withTotalRows(Long totalRows) { | ||
this.totalRows = totalRows; | ||
return this; | ||
} | ||
|
||
@JsonProperty("offset") | ||
public Long getOffset() { | ||
return offset; | ||
} | ||
|
||
@JsonProperty("offset") | ||
public void setOffset(Long offset) { | ||
this.offset = offset; | ||
} | ||
|
||
public CmdbHasManyList<ROWT> withOffset(Long offset) { | ||
this.offset = offset; | ||
return this; | ||
} | ||
|
||
@JsonProperty("rows") | ||
public List<ROWT> getRows() { | ||
return rows; | ||
} | ||
|
||
@JsonProperty("rows") | ||
public void setRows(List<ROWT> rows) { | ||
this.rows = rows; | ||
} | ||
|
||
public CmdbHasManyList<ROWT> withRows(List<ROWT> rows) { | ||
this.rows = rows; | ||
return this; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return ToStringBuilder.reflectionToString(this); | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
public CmdbHasManyList<ROWT> withAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
return this; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return new HashCodeBuilder().append(totalRows).append(offset).append(rows) | ||
.append(additionalProperties).toHashCode(); | ||
} | ||
|
||
@Override | ||
public boolean equals(Object other) { | ||
if (other == this) { | ||
return true; | ||
} | ||
if ((other instanceof CmdbHasManyList<?>) == false) { | ||
return false; | ||
} | ||
@SuppressWarnings("unchecked") | ||
CmdbHasManyList<ROWT> rhs = ((CmdbHasManyList<ROWT>) other); | ||
return new EqualsBuilder().append(totalRows, rhs.totalRows).append(offset, rhs.offset) | ||
.append(rows, rhs.rows).append(additionalProperties, rhs.additionalProperties).isEquals(); | ||
} | ||
|
||
} |
Oops, something went wrong.