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
3f8bb477
Commit
3f8bb477
authored
Dec 26, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change names
parent
7f0cb089
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
28 deletions
+21
-28
CloudCred.java
...ain/java/nl/uva/sne/drip/model/cloud/storm/CloudCred.java
+8
-8
CloudCredentials.java
...a/nl/uva/sne/drip/model/cloud/storm/CloudCredentials.java
+6
-6
CloudStormService.java
...n/java/nl/uva/sne/drip/provisioner/CloudStormService.java
+4
-4
CloudCred.yml
openAPI/schema/CloudStorm/CloudCred.yml
+1
-1
CloudCreds.yml
openAPI/schema/CloudStorm/CloudCreds.yml
+2
-2
CloudDB.yml
openAPI/schema/CloudStorm/CloudDB.yml
+0
-7
No files found.
drip-commons/src/main/java/nl/uva/sne/drip/model/cloud/storm/CloudCred
ential
.java
→
drip-commons/src/main/java/nl/uva/sne/drip/model/cloud/storm/CloudCred.java
View file @
3f8bb477
...
...
@@ -6,12 +6,12 @@ import io.swagger.annotations.ApiModelProperty;
import
org.springframework.validation.annotation.Validated
;
/**
* CloudCred
ential
* CloudCred
*/
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-12-24T17:07:10.081Z"
)
public
class
CloudCred
ential
{
public
class
CloudCred
{
@JsonProperty
(
"cloudProvider"
)
private
String
cloudProvider
=
null
;
...
...
@@ -19,7 +19,7 @@ public class CloudCredential {
@JsonProperty
(
"credInfoFile"
)
private
String
credInfoFile
=
null
;
public
CloudCred
ential
cloudProvider
(
String
cloudProvider
)
{
public
CloudCred
cloudProvider
(
String
cloudProvider
)
{
this
.
cloudProvider
=
cloudProvider
;
return
this
;
}
...
...
@@ -40,7 +40,7 @@ public class CloudCredential {
this
.
cloudProvider
=
cloudProvider
;
}
public
CloudCred
ential
credInfoFile
(
String
credInfoFile
)
{
public
CloudCred
credInfoFile
(
String
credInfoFile
)
{
this
.
credInfoFile
=
credInfoFile
;
return
this
;
}
...
...
@@ -69,9 +69,9 @@ public class CloudCredential {
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
CloudCred
ential
cloudCredential
=
(
CloudCredential
)
o
;
return
Objects
.
equals
(
this
.
cloudProvider
,
cloudCred
ential
.
cloudProvider
)
&&
Objects
.
equals
(
this
.
credInfoFile
,
cloudCred
ential
.
credInfoFile
);
CloudCred
cloudCred
=
(
CloudCred
)
o
;
return
Objects
.
equals
(
this
.
cloudProvider
,
cloudCred
.
cloudProvider
)
&&
Objects
.
equals
(
this
.
credInfoFile
,
cloudCred
.
credInfoFile
);
}
@Override
...
...
@@ -82,7 +82,7 @@ public class CloudCredential {
@Override
public
String
toString
()
{
StringBuilder
sb
=
new
StringBuilder
();
sb
.
append
(
"class
CloudCredential
{\n"
);
sb
.
append
(
"class
cloudCred
{\n"
);
sb
.
append
(
" cloudProvider: "
).
append
(
toIndentedString
(
cloudProvider
)).
append
(
"\n"
);
sb
.
append
(
" credInfoFile: "
).
append
(
toIndentedString
(
credInfoFile
)).
append
(
"\n"
);
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/cloud/storm/CloudCredentials.java
View file @
3f8bb477
...
...
@@ -18,16 +18,16 @@ public class CloudCredentials {
@JsonProperty
(
"cloudCreds"
)
@Valid
private
List
<
CloudCred
ential
>
cloudCreds
=
null
;
private
List
<
CloudCred
>
cloudCreds
=
null
;
public
CloudCredentials
cloudCreds
(
List
<
CloudCred
ential
>
cloudCreds
)
{
public
CloudCredentials
cloudCreds
(
List
<
CloudCred
>
cloudCreds
)
{
this
.
cloudCreds
=
cloudCreds
;
return
this
;
}
public
CloudCredentials
addCloudCredentialItem
(
CloudCred
ential
cloudCredsItem
)
{
public
CloudCredentials
addCloudCredentialItem
(
CloudCred
cloudCredsItem
)
{
if
(
this
.
cloudCreds
==
null
)
{
this
.
cloudCreds
=
new
ArrayList
<
CloudCredential
>();
this
.
cloudCreds
=
new
ArrayList
<>();
}
this
.
cloudCreds
.
add
(
cloudCredsItem
);
return
this
;
...
...
@@ -43,11 +43,11 @@ public class CloudCredentials {
@Valid
public
List
<
CloudCred
ential
>
getCloudCredential
()
{
public
List
<
CloudCred
>
getCloudCredential
()
{
return
cloudCreds
;
}
public
void
setCloudCred
ential
(
List
<
CloudCredential
>
cloudCreds
)
{
public
void
setCloudCred
s
(
List
<
CloudCred
>
cloudCreds
)
{
this
.
cloudCreds
=
cloudCreds
;
}
...
...
drip-provisioner/src/main/java/nl/uva/sne/drip/provisioner/CloudStormService.java
View file @
3f8bb477
...
...
@@ -27,7 +27,7 @@ import java.util.Properties;
import
nl.uva.sne.drip.commons.utils.ToscaHelper
;
import
nl.uva.sne.drip.model.cloud.storm.CloudsStormVM
;
import
nl.uva.sne.drip.model.NodeTemplateMap
;
import
nl.uva.sne.drip.model.cloud.storm.CloudCred
ential
;
import
nl.uva.sne.drip.model.cloud.storm.CloudCred
;
import
nl.uva.sne.drip.model.cloud.storm.CloudCredentials
;
import
nl.uva.sne.drip.model.cloud.storm.CloudsStormSubTopology
;
import
nl.uva.sne.drip.model.cloud.storm.CloudsStormTopTopology
;
...
...
@@ -180,12 +180,12 @@ class CloudStormService {
private
void
writeCloudStormCredentialsFiles
(
String
credentialsTempInputDirPath
)
throws
ApiException
,
Exception
{
List
<
NodeTemplateMap
>
vmTopologiesMaps
=
helper
.
getVMTopologyTemplates
();
List
<
CloudCred
ential
>
cloudStormCredentialList
=
new
ArrayList
<>();
List
<
CloudCred
>
cloudStormCredentialList
=
new
ArrayList
<>();
int
i
=
0
;
for
(
NodeTemplateMap
vmTopologyMap
:
vmTopologiesMaps
)
{
Credential
toscaCredentials
=
helper
.
getCredentialsFromVMTopology
(
vmTopologyMap
);
CloudCred
ential
cloudStormCredential
=
new
CloudCredential
();
CloudCred
cloudStormCredential
=
new
CloudCred
();
cloudStormCredential
.
setCloudProvider
(
toscaCredentials
.
getCloudProviderName
());
String
credInfoFile
=
credentialsTempInputDirPath
+
File
.
separator
+
toscaCredentials
.
getCloudProviderName
()
+
i
+
".yml"
;
cloudStormCredential
.
setCredInfoFile
(
credInfoFile
);
...
...
@@ -196,7 +196,7 @@ class CloudStormService {
i
++;
}
CloudCredentials
cloudStormCredentials
=
new
CloudCredentials
();
cloudStormCredentials
.
setCloudCred
ential
(
cloudStormCredentialList
);
cloudStormCredentials
.
setCloudCred
s
(
cloudStormCredentialList
);
objectMapper
.
writeValue
(
new
File
(
credentialsTempInputDirPath
+
File
.
separator
+
"CloudStormCredentials.yml"
),
cloudStormCredentials
);
}
...
...
openAPI/schema/CloudStorm/CloudCred
ential
.yml
→
openAPI/schema/CloudStorm/CloudCred.yml
View file @
3f8bb477
CloudCred
ential
:
CloudCred
:
type
:
"
object"
properties
:
cloudProvider
:
...
...
openAPI/schema/CloudStorm/CloudCred
ential
s.yml
→
openAPI/schema/CloudStorm/CloudCreds.yml
View file @
3f8bb477
CloudCred
ential
s
:
CloudCreds
:
type
:
"
object"
properties
:
cloudCreds
:
type
:
"
array"
items
:
$ref
:
"
https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/CloudCred
ential.yml#/CloudCredential
"
$ref
:
"
https://raw.githubusercontent.com/skoulouzis/CONF/DRIP_3.0/openAPI/schema/CloudStorm/CloudCred
.yml#/CloudCred
"
openAPI/schema/CloudStorm/CloudDB.yml
deleted
100644 → 0
View file @
7f0cb089
CloudDB
:
type
:
"
object"
properties
:
cloudProvider
:
type
:
"
string"
dbInfoFile
:
type
:
"
string"
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