Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
7f0cb089
Commit
7f0cb089
authored
Dec 26, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
write cloudstorm credentials to file
parent
8b30ace9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
62 deletions
+62
-62
CloudCredentials.java
...a/nl/uva/sne/drip/model/cloud/storm/CloudCredentials.java
+60
-59
CloudStormService.java
...n/java/nl/uva/sne/drip/provisioner/CloudStormService.java
+0
-1
CloudCredentials.yml
openAPI/schema/CloudStorm/CloudCredentials.yml
+2
-2
No files found.
drip-commons/src/main/java/nl/uva/sne/drip/model/cloud/storm/CloudCredentials.java
View file @
7f0cb089
...
@@ -12,79 +12,80 @@ import javax.validation.Valid;
...
@@ -12,79 +12,80 @@ import javax.validation.Valid;
* CloudCredentials
* CloudCredentials
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-2
4T17:07:10.081
Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-2
6T12:29:05.903
Z"
)
public
class
CloudCredentials
{
public
class
CloudCredentials
{
@JsonProperty
(
"CloudCredential"
)
@Valid
private
List
<
CloudCredential
>
cloudCredential
=
null
;
public
CloudCredentials
cloudCredential
(
List
<
CloudCredential
>
cloudCredential
)
{
@JsonProperty
(
"cloudCreds"
)
this
.
cloudCredential
=
cloudCredential
;
@Valid
return
this
;
private
List
<
CloudCredential
>
cloudCreds
=
null
;
}
public
CloudCredentials
addCloudCredentialItem
(
CloudCredential
cloudCredentialItem
)
{
public
CloudCredentials
cloudCreds
(
List
<
CloudCredential
>
cloudCreds
)
{
if
(
this
.
cloudCredential
==
null
)
{
this
.
cloudCreds
=
cloudCreds
;
this
.
cloudCredential
=
new
ArrayList
<
CloudCredential
>()
;
return
this
;
}
}
this
.
cloudCredential
.
add
(
cloudCredentialItem
);
return
this
;
}
/**
public
CloudCredentials
addCloudCredentialItem
(
CloudCredential
cloudCredsItem
)
{
* Get cloudCredential
if
(
this
.
cloudCreds
==
null
)
{
* @return cloudCredential
this
.
cloudCreds
=
new
ArrayList
<
CloudCredential
>();
**/
}
@ApiModelProperty
(
value
=
""
)
this
.
cloudCreds
.
add
(
cloudCredsItem
);
return
this
;
}
@Valid
/**
* Get cloudCreds
*
* @return cloudCreds
*
*/
@ApiModelProperty
(
value
=
""
)
public
List
<
CloudCredential
>
getCloudCredential
()
{
@Valid
return
cloudCredential
;
}
public
void
setCloudCredential
(
List
<
CloudCredential
>
cloudCredential
)
{
public
List
<
CloudCredential
>
getCloudCredential
(
)
{
this
.
cloudCredential
=
cloudCredential
;
return
cloudCreds
;
}
}
public
void
setCloudCredential
(
List
<
CloudCredential
>
cloudCreds
)
{
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
)
{
return
true
;
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
CloudCredentials
cloudCreds
=
(
CloudCredentials
)
o
;
return
Objects
.
equals
(
this
.
cloudCreds
,
cloudCreds
.
cloudCreds
);
}
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
cloudCreds
);
}
}
CloudCredentials
cloudCredentials
=
(
CloudCredentials
)
o
;
return
Objects
.
equals
(
this
.
cloudCredential
,
cloudCredentials
.
cloudCredential
);
}
@Override
@Override
public
int
hashCode
()
{
public
String
toString
()
{
return
Objects
.
hash
(
cloudCredential
);
StringBuilder
sb
=
new
StringBuilder
(
);
}
sb
.
append
(
"class CloudCreds {\n"
);
@Override
sb
.
append
(
" cloudCreds: "
).
append
(
toIndentedString
(
cloudCreds
)).
append
(
"\n"
);
public
String
toString
()
{
sb
.
append
(
"}"
);
StringBuilder
sb
=
new
StringBuilder
();
return
sb
.
toString
();
sb
.
append
(
"class CloudCredentials {\n"
);
}
sb
.
append
(
" cloudCredential: "
).
append
(
toIndentedString
(
cloudCredential
)).
append
(
"\n"
);
sb
.
append
(
"}"
);
return
sb
.
toString
();
}
/**
/**
* Convert the given object to string with each line indented by 4 spaces
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
* (except the first line).
*/
*/
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
private
String
toIndentedString
(
java
.
lang
.
Object
o
)
{
if
(
o
==
null
)
{
if
(
o
==
null
)
{
return
"null"
;
return
"null"
;
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
}
drip-provisioner/src/main/java/nl/uva/sne/drip/provisioner/CloudStormService.java
View file @
7f0cb089
...
@@ -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
;
...
...
openAPI/schema/CloudStorm/CloudCredentials.yml
View file @
7f0cb089
cloudCred
s
:
CloudCredential
s
:
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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment