Commit 7f0cb089 authored by Spiros Koulouzis's avatar Spiros Koulouzis

write cloudstorm credentials to file

parent 8b30ace9
...@@ -12,43 +12,45 @@ import javax.validation.Valid; ...@@ -12,43 +12,45 @@ import javax.validation.Valid;
* CloudCredentials * CloudCredentials
*/ */
@Validated @Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-12-24T17:07:10.081Z") @javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2019-12-26T12:29:05.903Z")
public class CloudCredentials { public class CloudCredentials {
@JsonProperty("CloudCredential")
@JsonProperty("cloudCreds")
@Valid @Valid
private List<CloudCredential> cloudCredential = null; private List<CloudCredential> cloudCreds = null;
public CloudCredentials cloudCredential(List<CloudCredential> cloudCredential) { public CloudCredentials cloudCreds(List<CloudCredential> cloudCreds) {
this.cloudCredential = cloudCredential; this.cloudCreds = cloudCreds;
return this; return this;
} }
public CloudCredentials addCloudCredentialItem(CloudCredential cloudCredentialItem) { public CloudCredentials addCloudCredentialItem(CloudCredential cloudCredsItem) {
if (this.cloudCredential == null) { if (this.cloudCreds == null) {
this.cloudCredential = new ArrayList<CloudCredential>(); this.cloudCreds = new ArrayList<CloudCredential>();
} }
this.cloudCredential.add(cloudCredentialItem); this.cloudCreds.add(cloudCredsItem);
return this; return this;
} }
/** /**
* Get cloudCredential * Get cloudCreds
* @return cloudCredential *
**/ * @return cloudCreds
*
*/
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
@Valid @Valid
public List<CloudCredential> getCloudCredential() { public List<CloudCredential> getCloudCredential() {
return cloudCredential; return cloudCreds;
} }
public void setCloudCredential(List<CloudCredential> cloudCredential) { public void setCloudCredential(List<CloudCredential> cloudCreds) {
this.cloudCredential = cloudCredential; this.cloudCreds = cloudCreds;
} }
@Override @Override
public boolean equals(java.lang.Object o) { public boolean equals(java.lang.Object o) {
if (this == o) { if (this == o) {
...@@ -57,21 +59,21 @@ public class CloudCredentials { ...@@ -57,21 +59,21 @@ public class CloudCredentials {
if (o == null || getClass() != o.getClass()) { if (o == null || getClass() != o.getClass()) {
return false; return false;
} }
CloudCredentials cloudCredentials = (CloudCredentials) o; CloudCredentials cloudCreds = (CloudCredentials) o;
return Objects.equals(this.cloudCredential, cloudCredentials.cloudCredential); return Objects.equals(this.cloudCreds, cloudCreds.cloudCreds);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(cloudCredential); return Objects.hash(cloudCreds);
} }
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append("class CloudCredentials {\n"); sb.append("class CloudCreds {\n");
sb.append(" cloudCredential: ").append(toIndentedString(cloudCredential)).append("\n"); sb.append(" cloudCreds: ").append(toIndentedString(cloudCreds)).append("\n");
sb.append("}"); sb.append("}");
return sb.toString(); return sb.toString();
} }
...@@ -87,4 +89,3 @@ public class CloudCredentials { ...@@ -87,4 +89,3 @@ public class CloudCredentials {
return o.toString().replace("\n", "\n "); return o.toString().replace("\n", "\n ");
} }
} }
...@@ -26,7 +26,6 @@ import java.util.Objects; ...@@ -26,7 +26,6 @@ import java.util.Objects;
import java.util.Properties; import java.util.Properties;
import nl.uva.sne.drip.commons.utils.ToscaHelper; import nl.uva.sne.drip.commons.utils.ToscaHelper;
import nl.uva.sne.drip.model.cloud.storm.CloudsStormVM; import nl.uva.sne.drip.model.cloud.storm.CloudsStormVM;
import nl.uva.sne.drip.model.NodeTemplate;
import nl.uva.sne.drip.model.NodeTemplateMap; import nl.uva.sne.drip.model.NodeTemplateMap;
import nl.uva.sne.drip.model.cloud.storm.CloudCredential; import nl.uva.sne.drip.model.cloud.storm.CloudCredential;
import nl.uva.sne.drip.model.cloud.storm.CloudCredentials; import nl.uva.sne.drip.model.cloud.storm.CloudCredentials;
......
cloudCreds: CloudCredentials:
type: "object" type: "object"
properties: properties:
CloudCredential: cloudCreds:
type: "array" type: "array"
items: items:
$ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/CloudCredential.yml#/CloudCredential" $ref: "https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/CloudCredential.yml#/CloudCredential"
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