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
b8838009
Commit
b8838009
authored
Dec 26, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added Provisioner type
parent
5e5868ec
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
95 additions
and
15 deletions
+95
-15
Provisioner.java
...mons/src/main/java/nl/uva/sne/drip/model/Provisioner.java
+49
-0
DRIPService.java
...er/src/main/java/nl/uva/sne/drip/service/DRIPService.java
+0
-4
ProvisionerService.java
...main/java/nl/uva/sne/drip/service/ProvisionerService.java
+35
-0
Provisioner.yml
openAPI/schema/Provisioner.yml
+11
-11
No files found.
drip-commons/src/main/java/nl/uva/sne/drip/model/Provisioner.java
0 → 100644
View file @
b8838009
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 "
);
}
}
drip-manager/src/main/java/nl/uva/sne/drip/service/DRIPService.java
View file @
b8838009
...
@@ -136,8 +136,4 @@ public class DRIPService {
...
@@ -136,8 +136,4 @@ public class DRIPService {
}
}
private
Map
<
String
,
Object
>
getBestProvisionInterfaceDefinitions
(
List
<
Map
<
String
,
Object
>>
result
)
{
return
result
.
get
(
0
);
}
}
}
drip-manager/src/main/java/nl/uva/sne/drip/service/ProvisionerService.java
0 → 100644
View file @
b8838009
/*
* 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
;
}
}
openAPI/schema/Provisioner.yml
View file @
b8838009
Provisioner
:
Provisioner
:
type
:
"
object"
type
:
"
object"
properties
:
properties
:
name
:
name
:
type
:
"
string"
type
:
"
string"
version
:
version
:
type
:
"
string"
type
:
"
string"
description
:
description
:
type
:
"
string"
type
:
"
string"
tosca_interface_type
:
tosca_interface_type
:
type
:
"
string"
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