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
5dbca3ef
Commit
5dbca3ef
authored
Nov 01, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed types
parent
9a82a58c
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
685 additions
and
688 deletions
+685
-688
Credentials.java
...mons/src/main/java/nl/uva/sne/drip/model/Credentials.java
+2
-2
NodeTemplate.java
...ons/src/main/java/nl/uva/sne/drip/model/NodeTemplate.java
+37
-56
TopologyTemplate.java
...src/main/java/nl/uva/sne/drip/model/TopologyTemplate.java
+66
-52
ToscaTemplate.java
...ns/src/main/java/nl/uva/sne/drip/model/ToscaTemplate.java
+530
-550
User.java
drip-commons/src/main/java/nl/uva/sne/drip/model/User.java
+21
-1
ProvisionerService.java
...main/java/nl/uva/sne/drip/service/ProvisionerService.java
+4
-2
NodeTemplate.yml
openAPI/TOSCA/NodeTemplate.yml
+6
-6
TopologyTemplate.yml
openAPI/TOSCA/TopologyTemplate.yml
+5
-5
ToscaTemplate.yml
openAPI/TOSCA/ToscaTemplate.yml
+14
-14
No files found.
drip-commons/src/main/java/nl/uva/sne/drip/model/Credentials.java
View file @
5dbca3ef
...
@@ -18,7 +18,7 @@ import org.springframework.data.annotation.Id;
...
@@ -18,7 +18,7 @@ import org.springframework.data.annotation.Id;
* Credentials
* Credentials
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
3:58:45.661
Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
4:10:53.529
Z"
)
public
class
Credentials
{
public
class
Credentials
{
/**
/**
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/NodeTemplate.java
View file @
5dbca3ef
...
@@ -3,7 +3,6 @@ package nl.uva.sne.drip.model;
...
@@ -3,7 +3,6 @@ package nl.uva.sne.drip.model;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -13,51 +12,33 @@ import java.util.Map;
...
@@ -13,51 +12,33 @@ import java.util.Map;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
import
javax.validation.constraints.*
;
import
org.springframework.data.annotation.Id
;
/**
/**
* NodeTemplate
* NodeTemplate
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
3:58:45.661
Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
4:10:53.529
Z"
)
public
class
NodeTemplate
{
public
class
NodeTemplate
{
/**
* @return the id
*/
public
String
getId
()
{
return
id
;
}
/**
* @param id the id to set
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
@Id
@JsonIgnore
private
String
id
;
@JsonProperty
(
"derived_from"
)
@JsonProperty
(
"derived_from"
)
private
String
derivedFrom
=
null
;
private
String
derivedFrom
=
null
;
@JsonProperty
(
"properties"
)
@JsonProperty
(
"properties"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
properties
=
null
;
private
Map
<
String
,
String
>
properties
=
null
;
@JsonProperty
(
"requirements"
)
@JsonProperty
(
"requirements"
)
@Valid
@Valid
private
List
<
Map
<
String
,
Object
>>
requirements
=
null
;
private
List
<
Map
<
String
,
String
>>
requirements
=
null
;
@JsonProperty
(
"interfaces"
)
@JsonProperty
(
"interfaces"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
interfaces
=
null
;
private
Map
<
String
,
String
>
interfaces
=
null
;
@JsonProperty
(
"capabilities"
)
@JsonProperty
(
"capabilities"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
capabilities
=
null
;
private
Map
<
String
,
String
>
capabilities
=
null
;
@JsonProperty
(
"type"
)
@JsonProperty
(
"type"
)
private
String
type
=
null
;
private
String
type
=
null
;
...
@@ -71,11 +52,11 @@ public class NodeTemplate {
...
@@ -71,11 +52,11 @@ public class NodeTemplate {
@JsonProperty
(
"attributes"
)
@JsonProperty
(
"attributes"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
attributes
=
null
;
private
Map
<
String
,
String
>
attributes
=
null
;
@JsonProperty
(
"artifacts"
)
@JsonProperty
(
"artifacts"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
artifacts
=
null
;
private
Map
<
String
,
String
>
artifacts
=
null
;
public
NodeTemplate
derivedFrom
(
String
derivedFrom
)
{
public
NodeTemplate
derivedFrom
(
String
derivedFrom
)
{
this
.
derivedFrom
=
derivedFrom
;
this
.
derivedFrom
=
derivedFrom
;
...
@@ -97,14 +78,14 @@ public class NodeTemplate {
...
@@ -97,14 +78,14 @@ public class NodeTemplate {
this
.
derivedFrom
=
derivedFrom
;
this
.
derivedFrom
=
derivedFrom
;
}
}
public
NodeTemplate
properties
(
Map
<
String
,
Object
>
properties
)
{
public
NodeTemplate
properties
(
Map
<
String
,
String
>
properties
)
{
this
.
properties
=
properties
;
this
.
properties
=
properties
;
return
this
;
return
this
;
}
}
public
NodeTemplate
putPropertiesItem
(
String
key
,
Object
propertiesItem
)
{
public
NodeTemplate
putPropertiesItem
(
String
key
,
String
propertiesItem
)
{
if
(
this
.
properties
==
null
)
{
if
(
this
.
properties
==
null
)
{
this
.
properties
=
new
HashMap
<
String
,
Object
>();
this
.
properties
=
new
HashMap
<
String
,
String
>();
}
}
this
.
properties
.
put
(
key
,
propertiesItem
);
this
.
properties
.
put
(
key
,
propertiesItem
);
return
this
;
return
this
;
...
@@ -117,22 +98,22 @@ public class NodeTemplate {
...
@@ -117,22 +98,22 @@ public class NodeTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getProperties
()
{
public
Map
<
String
,
String
>
getProperties
()
{
return
properties
;
return
properties
;
}
}
public
void
setProperties
(
Map
<
String
,
Object
>
properties
)
{
public
void
setProperties
(
Map
<
String
,
String
>
properties
)
{
this
.
properties
=
properties
;
this
.
properties
=
properties
;
}
}
public
NodeTemplate
requirements
(
List
<
Map
<
String
,
Object
>>
requirements
)
{
public
NodeTemplate
requirements
(
List
<
Map
<
String
,
String
>>
requirements
)
{
this
.
requirements
=
requirements
;
this
.
requirements
=
requirements
;
return
this
;
return
this
;
}
}
public
NodeTemplate
addRequirementsItem
(
Map
<
String
,
Object
>
requirementsItem
)
{
public
NodeTemplate
addRequirementsItem
(
Map
<
String
,
String
>
requirementsItem
)
{
if
(
this
.
requirements
==
null
)
{
if
(
this
.
requirements
==
null
)
{
this
.
requirements
=
new
ArrayList
<
Map
<
String
,
Object
>>();
this
.
requirements
=
new
ArrayList
<
Map
<
String
,
String
>>();
}
}
this
.
requirements
.
add
(
requirementsItem
);
this
.
requirements
.
add
(
requirementsItem
);
return
this
;
return
this
;
...
@@ -146,22 +127,22 @@ public class NodeTemplate {
...
@@ -146,22 +127,22 @@ public class NodeTemplate {
@Valid
@Valid
public
List
<
Map
<
String
,
Object
>>
getRequirements
()
{
public
List
<
Map
<
String
,
String
>>
getRequirements
()
{
return
requirements
;
return
requirements
;
}
}
public
void
setRequirements
(
List
<
Map
<
String
,
Object
>>
requirements
)
{
public
void
setRequirements
(
List
<
Map
<
String
,
String
>>
requirements
)
{
this
.
requirements
=
requirements
;
this
.
requirements
=
requirements
;
}
}
public
NodeTemplate
interfaces
(
Map
<
String
,
Object
>
interfaces
)
{
public
NodeTemplate
interfaces
(
Map
<
String
,
String
>
interfaces
)
{
this
.
interfaces
=
interfaces
;
this
.
interfaces
=
interfaces
;
return
this
;
return
this
;
}
}
public
NodeTemplate
putInterfacesItem
(
String
key
,
Object
interfacesItem
)
{
public
NodeTemplate
putInterfacesItem
(
String
key
,
String
interfacesItem
)
{
if
(
this
.
interfaces
==
null
)
{
if
(
this
.
interfaces
==
null
)
{
this
.
interfaces
=
new
HashMap
<
String
,
Object
>();
this
.
interfaces
=
new
HashMap
<
String
,
String
>();
}
}
this
.
interfaces
.
put
(
key
,
interfacesItem
);
this
.
interfaces
.
put
(
key
,
interfacesItem
);
return
this
;
return
this
;
...
@@ -174,22 +155,22 @@ public class NodeTemplate {
...
@@ -174,22 +155,22 @@ public class NodeTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getInterfaces
()
{
public
Map
<
String
,
String
>
getInterfaces
()
{
return
interfaces
;
return
interfaces
;
}
}
public
void
setInterfaces
(
Map
<
String
,
Object
>
interfaces
)
{
public
void
setInterfaces
(
Map
<
String
,
String
>
interfaces
)
{
this
.
interfaces
=
interfaces
;
this
.
interfaces
=
interfaces
;
}
}
public
NodeTemplate
capabilities
(
Map
<
String
,
Object
>
capabilities
)
{
public
NodeTemplate
capabilities
(
Map
<
String
,
String
>
capabilities
)
{
this
.
capabilities
=
capabilities
;
this
.
capabilities
=
capabilities
;
return
this
;
return
this
;
}
}
public
NodeTemplate
putCapabilitiesItem
(
String
key
,
Object
capabilitiesItem
)
{
public
NodeTemplate
putCapabilitiesItem
(
String
key
,
String
capabilitiesItem
)
{
if
(
this
.
capabilities
==
null
)
{
if
(
this
.
capabilities
==
null
)
{
this
.
capabilities
=
new
HashMap
<
String
,
Object
>();
this
.
capabilities
=
new
HashMap
<
String
,
String
>();
}
}
this
.
capabilities
.
put
(
key
,
capabilitiesItem
);
this
.
capabilities
.
put
(
key
,
capabilitiesItem
);
return
this
;
return
this
;
...
@@ -202,11 +183,11 @@ public class NodeTemplate {
...
@@ -202,11 +183,11 @@ public class NodeTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getCapabilities
()
{
public
Map
<
String
,
String
>
getCapabilities
()
{
return
capabilities
;
return
capabilities
;
}
}
public
void
setCapabilities
(
Map
<
String
,
Object
>
capabilities
)
{
public
void
setCapabilities
(
Map
<
String
,
String
>
capabilities
)
{
this
.
capabilities
=
capabilities
;
this
.
capabilities
=
capabilities
;
}
}
...
@@ -278,14 +259,14 @@ public class NodeTemplate {
...
@@ -278,14 +259,14 @@ public class NodeTemplate {
this
.
directives
=
directives
;
this
.
directives
=
directives
;
}
}
public
NodeTemplate
attributes
(
Map
<
String
,
Object
>
attributes
)
{
public
NodeTemplate
attributes
(
Map
<
String
,
String
>
attributes
)
{
this
.
attributes
=
attributes
;
this
.
attributes
=
attributes
;
return
this
;
return
this
;
}
}
public
NodeTemplate
putAttributesItem
(
String
key
,
Object
attributesItem
)
{
public
NodeTemplate
putAttributesItem
(
String
key
,
String
attributesItem
)
{
if
(
this
.
attributes
==
null
)
{
if
(
this
.
attributes
==
null
)
{
this
.
attributes
=
new
HashMap
<
String
,
Object
>();
this
.
attributes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
attributes
.
put
(
key
,
attributesItem
);
this
.
attributes
.
put
(
key
,
attributesItem
);
return
this
;
return
this
;
...
@@ -298,22 +279,22 @@ public class NodeTemplate {
...
@@ -298,22 +279,22 @@ public class NodeTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getAttributes
()
{
public
Map
<
String
,
String
>
getAttributes
()
{
return
attributes
;
return
attributes
;
}
}
public
void
setAttributes
(
Map
<
String
,
Object
>
attributes
)
{
public
void
setAttributes
(
Map
<
String
,
String
>
attributes
)
{
this
.
attributes
=
attributes
;
this
.
attributes
=
attributes
;
}
}
public
NodeTemplate
artifacts
(
Map
<
String
,
Object
>
artifacts
)
{
public
NodeTemplate
artifacts
(
Map
<
String
,
String
>
artifacts
)
{
this
.
artifacts
=
artifacts
;
this
.
artifacts
=
artifacts
;
return
this
;
return
this
;
}
}
public
NodeTemplate
putArtifactsItem
(
String
key
,
Object
artifactsItem
)
{
public
NodeTemplate
putArtifactsItem
(
String
key
,
String
artifactsItem
)
{
if
(
this
.
artifacts
==
null
)
{
if
(
this
.
artifacts
==
null
)
{
this
.
artifacts
=
new
HashMap
<
String
,
Object
>();
this
.
artifacts
=
new
HashMap
<
String
,
String
>();
}
}
this
.
artifacts
.
put
(
key
,
artifactsItem
);
this
.
artifacts
.
put
(
key
,
artifactsItem
);
return
this
;
return
this
;
...
@@ -326,11 +307,11 @@ public class NodeTemplate {
...
@@ -326,11 +307,11 @@ public class NodeTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getArtifacts
()
{
public
Map
<
String
,
String
>
getArtifacts
()
{
return
artifacts
;
return
artifacts
;
}
}
public
void
setArtifacts
(
Map
<
String
,
Object
>
artifacts
)
{
public
void
setArtifacts
(
Map
<
String
,
String
>
artifacts
)
{
this
.
artifacts
=
artifacts
;
this
.
artifacts
=
artifacts
;
}
}
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/TopologyTemplate.java
View file @
5dbca3ef
...
@@ -2,9 +2,6 @@ package nl.uva.sne.drip.model;
...
@@ -2,9 +2,6 @@ package nl.uva.sne.drip.model;
import
java.util.Objects
;
import
java.util.Objects
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -12,39 +9,20 @@ import java.util.List;
...
@@ -12,39 +9,20 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
import
org.springframework.data.annotation.Id
;
/**
/**
* TopologyTemplate
* TopologyTemplate
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
3:58:45.661
Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
4:10:53.529
Z"
)
public
class
TopologyTemplate
{
public
class
TopologyTemplate
{
/**
* @return the id
*/
public
String
getId
()
{
return
id
;
}
/**
* @param id the id to set
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
@Id
@JsonIgnore
private
String
id
;
@JsonProperty
(
"description"
)
@JsonProperty
(
"description"
)
private
String
description
=
null
;
private
String
description
=
null
;
@JsonProperty
(
"inputs"
)
@JsonProperty
(
"inputs"
)
private
String
inputs
=
null
;
@Valid
private
Map
<
String
,
String
>
inputs
=
null
;
@JsonProperty
(
"node_templates"
)
@JsonProperty
(
"node_templates"
)
@Valid
@Valid
...
@@ -52,20 +30,23 @@ public class TopologyTemplate {
...
@@ -52,20 +30,23 @@ public class TopologyTemplate {
@JsonProperty
(
"relationship_templates"
)
@JsonProperty
(
"relationship_templates"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
relationshipTemplates
=
null
;
private
Map
<
String
,
String
>
relationshipTemplates
=
null
;
@JsonProperty
(
"outputs"
)
@JsonProperty
(
"outputs"
)
private
String
outputs
=
null
;
@Valid
private
Map
<
String
,
String
>
outputs
=
null
;
@JsonProperty
(
"groups"
)
@JsonProperty
(
"groups"
)
private
String
groups
=
null
;
@Valid
private
Map
<
String
,
String
>
groups
=
null
;
@JsonProperty
(
"substitution_mappings"
)
@JsonProperty
(
"substitution_mappings"
)
private
String
substitutionMappings
=
null
;
@Valid
private
Map
<
String
,
String
>
substitutionMappings
=
null
;
@JsonProperty
(
"policies"
)
@JsonProperty
(
"policies"
)
@Valid
@Valid
private
List
<
String
>
policies
=
null
;
private
List
<
Map
<
String
,
String
>
>
policies
=
null
;
public
TopologyTemplate
description
(
String
description
)
{
public
TopologyTemplate
description
(
String
description
)
{
this
.
description
=
description
;
this
.
description
=
description
;
...
@@ -87,11 +68,19 @@ public class TopologyTemplate {
...
@@ -87,11 +68,19 @@ public class TopologyTemplate {
this
.
description
=
description
;
this
.
description
=
description
;
}
}
public
TopologyTemplate
inputs
(
String
inputs
)
{
public
TopologyTemplate
inputs
(
Map
<
String
,
String
>
inputs
)
{
this
.
inputs
=
inputs
;
this
.
inputs
=
inputs
;
return
this
;
return
this
;
}
}
public
TopologyTemplate
putInputsItem
(
String
key
,
String
inputsItem
)
{
if
(
this
.
inputs
==
null
)
{
this
.
inputs
=
new
HashMap
<
String
,
String
>();
}
this
.
inputs
.
put
(
key
,
inputsItem
);
return
this
;
}
/**
/**
* Get inputs
* Get inputs
* @return inputs
* @return inputs
...
@@ -99,11 +88,11 @@ public class TopologyTemplate {
...
@@ -99,11 +88,11 @@ public class TopologyTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getInputs
()
{
public
Map
<
String
,
String
>
getInputs
()
{
return
inputs
;
return
inputs
;
}
}
public
void
setInputs
(
String
inputs
)
{
public
void
setInputs
(
Map
<
String
,
String
>
inputs
)
{
this
.
inputs
=
inputs
;
this
.
inputs
=
inputs
;
}
}
...
@@ -136,14 +125,14 @@ public class TopologyTemplate {
...
@@ -136,14 +125,14 @@ public class TopologyTemplate {
this
.
nodeTemplates
=
nodeTemplates
;
this
.
nodeTemplates
=
nodeTemplates
;
}
}
public
TopologyTemplate
relationshipTemplates
(
Map
<
String
,
Object
>
relationshipTemplates
)
{
public
TopologyTemplate
relationshipTemplates
(
Map
<
String
,
String
>
relationshipTemplates
)
{
this
.
relationshipTemplates
=
relationshipTemplates
;
this
.
relationshipTemplates
=
relationshipTemplates
;
return
this
;
return
this
;
}
}
public
TopologyTemplate
putRelationshipTemplatesItem
(
String
key
,
Object
relationshipTemplatesItem
)
{
public
TopologyTemplate
putRelationshipTemplatesItem
(
String
key
,
String
relationshipTemplatesItem
)
{
if
(
this
.
relationshipTemplates
==
null
)
{
if
(
this
.
relationshipTemplates
==
null
)
{
this
.
relationshipTemplates
=
new
HashMap
<
String
,
Object
>();
this
.
relationshipTemplates
=
new
HashMap
<
String
,
String
>();
}
}
this
.
relationshipTemplates
.
put
(
key
,
relationshipTemplatesItem
);
this
.
relationshipTemplates
.
put
(
key
,
relationshipTemplatesItem
);
return
this
;
return
this
;
...
@@ -156,19 +145,27 @@ public class TopologyTemplate {
...
@@ -156,19 +145,27 @@ public class TopologyTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getRelationshipTemplates
()
{
public
Map
<
String
,
String
>
getRelationshipTemplates
()
{
return
relationshipTemplates
;
return
relationshipTemplates
;
}
}
public
void
setRelationshipTemplates
(
Map
<
String
,
Object
>
relationshipTemplates
)
{
public
void
setRelationshipTemplates
(
Map
<
String
,
String
>
relationshipTemplates
)
{
this
.
relationshipTemplates
=
relationshipTemplates
;
this
.
relationshipTemplates
=
relationshipTemplates
;
}
}
public
TopologyTemplate
outputs
(
String
outputs
)
{
public
TopologyTemplate
outputs
(
Map
<
String
,
String
>
outputs
)
{
this
.
outputs
=
outputs
;
this
.
outputs
=
outputs
;
return
this
;
return
this
;
}
}
public
TopologyTemplate
putOutputsItem
(
String
key
,
String
outputsItem
)
{
if
(
this
.
outputs
==
null
)
{
this
.
outputs
=
new
HashMap
<
String
,
String
>();
}
this
.
outputs
.
put
(
key
,
outputsItem
);
return
this
;
}
/**
/**
* Get outputs
* Get outputs
* @return outputs
* @return outputs
...
@@ -176,19 +173,27 @@ public class TopologyTemplate {
...
@@ -176,19 +173,27 @@ public class TopologyTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getOutputs
()
{
public
Map
<
String
,
String
>
getOutputs
()
{
return
outputs
;
return
outputs
;
}
}
public
void
setOutputs
(
String
outputs
)
{
public
void
setOutputs
(
Map
<
String
,
String
>
outputs
)
{
this
.
outputs
=
outputs
;
this
.
outputs
=
outputs
;
}
}
public
TopologyTemplate
groups
(
String
groups
)
{
public
TopologyTemplate
groups
(
Map
<
String
,
String
>
groups
)
{
this
.
groups
=
groups
;
this
.
groups
=
groups
;
return
this
;
return
this
;
}
}
public
TopologyTemplate
putGroupsItem
(
String
key
,
String
groupsItem
)
{
if
(
this
.
groups
==
null
)
{
this
.
groups
=
new
HashMap
<
String
,
String
>();
}
this
.
groups
.
put
(
key
,
groupsItem
);
return
this
;
}
/**
/**
* Get groups
* Get groups
* @return groups
* @return groups
...
@@ -196,19 +201,27 @@ public class TopologyTemplate {
...
@@ -196,19 +201,27 @@ public class TopologyTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getGroups
()
{
public
Map
<
String
,
String
>
getGroups
()
{
return
groups
;
return
groups
;
}
}
public
void
setGroups
(
String
groups
)
{
public
void
setGroups
(
Map
<
String
,
String
>
groups
)
{
this
.
groups
=
groups
;
this
.
groups
=
groups
;
}
}
public
TopologyTemplate
substitutionMappings
(
String
substitutionMappings
)
{
public
TopologyTemplate
substitutionMappings
(
Map
<
String
,
String
>
substitutionMappings
)
{
this
.
substitutionMappings
=
substitutionMappings
;
this
.
substitutionMappings
=
substitutionMappings
;
return
this
;
return
this
;
}
}
public
TopologyTemplate
putSubstitutionMappingsItem
(
String
key
,
String
substitutionMappingsItem
)
{
if
(
this
.
substitutionMappings
==
null
)
{
this
.
substitutionMappings
=
new
HashMap
<
String
,
String
>();
}
this
.
substitutionMappings
.
put
(
key
,
substitutionMappingsItem
);
return
this
;
}
/**
/**
* Get substitutionMappings
* Get substitutionMappings
* @return substitutionMappings
* @return substitutionMappings
...
@@ -216,22 +229,22 @@ public class TopologyTemplate {
...
@@ -216,22 +229,22 @@ public class TopologyTemplate {
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getSubstitutionMappings
()
{
public
Map
<
String
,
String
>
getSubstitutionMappings
()
{
return
substitutionMappings
;
return
substitutionMappings
;
}
}
public
void
setSubstitutionMappings
(
String
substitutionMappings
)
{
public
void
setSubstitutionMappings
(
Map
<
String
,
String
>
substitutionMappings
)
{
this
.
substitutionMappings
=
substitutionMappings
;
this
.
substitutionMappings
=
substitutionMappings
;
}
}
public
TopologyTemplate
policies
(
List
<
String
>
policies
)
{
public
TopologyTemplate
policies
(
List
<
Map
<
String
,
String
>
>
policies
)
{
this
.
policies
=
policies
;
this
.
policies
=
policies
;
return
this
;
return
this
;
}
}
public
TopologyTemplate
addPoliciesItem
(
String
policiesItem
)
{
public
TopologyTemplate
addPoliciesItem
(
Map
<
String
,
String
>
policiesItem
)
{
if
(
this
.
policies
==
null
)
{
if
(
this
.
policies
==
null
)
{
this
.
policies
=
new
ArrayList
<
String
>();
this
.
policies
=
new
ArrayList
<
Map
<
String
,
String
>
>();
}
}
this
.
policies
.
add
(
policiesItem
);
this
.
policies
.
add
(
policiesItem
);
return
this
;
return
this
;
...
@@ -243,12 +256,13 @@ public class TopologyTemplate {
...
@@ -243,12 +256,13 @@ public class TopologyTemplate {
**/
**/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
@Valid
public
List
<
String
>
getPolicies
()
{
public
List
<
Map
<
String
,
String
>
>
getPolicies
()
{
return
policies
;
return
policies
;
}
}
public
void
setPolicies
(
List
<
String
>
policies
)
{
public
void
setPolicies
(
List
<
Map
<
String
,
String
>
>
policies
)
{
this
.
policies
=
policies
;
this
.
policies
=
policies
;
}
}
...
...
drip-commons/src/main/java/nl/uva/sne/drip/model/ToscaTemplate.java
View file @
5dbca3ef
...
@@ -19,10 +19,9 @@ import org.springframework.data.annotation.Id;
...
@@ -19,10 +19,9 @@ import org.springframework.data.annotation.Id;
* ToscaTemplate
* ToscaTemplate
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
3:58:45.661
Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
4:10:53.529
Z"
)
public
class
ToscaTemplate
{
public
class
ToscaTemplate
{
/**
/**
* @return the id
* @return the id
*/
*/
...
@@ -64,39 +63,39 @@ public class ToscaTemplate {
...
@@ -64,39 +63,39 @@ public class ToscaTemplate {
@JsonProperty
(
"imports"
)
@JsonProperty
(
"imports"
)
@Valid
@Valid
private
List
<
Map
<
String
,
Object
>>
imports
=
null
;
private
List
<
Map
<
String
,
String
>>
imports
=
null
;
@JsonProperty
(
"dsl_definitions"
)
@JsonProperty
(
"dsl_definitions"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
dslDefinitions
=
null
;
private
Map
<
String
,
String
>
dslDefinitions
=
null
;
@JsonProperty
(
"node_types"
)
@JsonProperty
(
"node_types"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
nodeTypes
=
null
;
private
Map
<
String
,
String
>
nodeTypes
=
null
;
@JsonProperty
(
"relationship_types"
)
@JsonProperty
(
"relationship_types"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
relationshipTypes
=
null
;
private
Map
<
String
,
String
>
relationshipTypes
=
null
;
@JsonProperty
(
"relationship_templates"
)
@JsonProperty
(
"relationship_templates"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
relationshipTemplates
=
null
;
private
Map
<
String
,
String
>
relationshipTemplates
=
null
;
@JsonProperty
(
"capability_types"
)
@JsonProperty
(
"capability_types"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
capabilityTypes
=
null
;
private
Map
<
String
,
String
>
capabilityTypes
=
null
;
@JsonProperty
(
"artifact_types"
)
@JsonProperty
(
"artifact_types"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
artifactTypes
=
null
;
private
Map
<
String
,
String
>
artifactTypes
=
null
;
@JsonProperty
(
"data_types"
)
@JsonProperty
(
"data_types"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
dataTypes
=
null
;
private
Map
<
String
,
String
>
dataTypes
=
null
;
@JsonProperty
(
"interface_types"
)
@JsonProperty
(
"interface_types"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
interfaceTypes
=
null
;
private
Map
<
String
,
String
>
interfaceTypes
=
null
;
@JsonProperty
(
"policy_types"
)
@JsonProperty
(
"policy_types"
)
@Valid
@Valid
...
@@ -104,11 +103,11 @@ public class ToscaTemplate {
...
@@ -104,11 +103,11 @@ public class ToscaTemplate {
@JsonProperty
(
"group_types"
)
@JsonProperty
(
"group_types"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
groupTypes
=
null
;
private
Map
<
String
,
String
>
groupTypes
=
null
;
@JsonProperty
(
"repositories"
)
@JsonProperty
(
"repositories"
)
@Valid
@Valid
private
Map
<
String
,
Object
>
repositories
=
null
;
private
Map
<
String
,
String
>
repositories
=
null
;
public
ToscaTemplate
toscaDefinitionsVersion
(
String
toscaDefinitionsVersion
)
{
public
ToscaTemplate
toscaDefinitionsVersion
(
String
toscaDefinitionsVersion
)
{
this
.
toscaDefinitionsVersion
=
toscaDefinitionsVersion
;
this
.
toscaDefinitionsVersion
=
toscaDefinitionsVersion
;
...
@@ -117,12 +116,11 @@ public class ToscaTemplate {
...
@@ -117,12 +116,11 @@ public class ToscaTemplate {
/**
/**
* Get toscaDefinitionsVersion
* Get toscaDefinitionsVersion
*
* @return toscaDefinitionsVersion
* @return toscaDefinitionsVersion
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getToscaDefinitionsVersion
()
{
public
String
getToscaDefinitionsVersion
()
{
return
toscaDefinitionsVersion
;
return
toscaDefinitionsVersion
;
}
}
...
@@ -138,12 +136,11 @@ public class ToscaTemplate {
...
@@ -138,12 +136,11 @@ public class ToscaTemplate {
/**
/**
* Get toscaDefaultNamespace
* Get toscaDefaultNamespace
*
* @return toscaDefaultNamespace
* @return toscaDefaultNamespace
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getToscaDefaultNamespace
()
{
public
String
getToscaDefaultNamespace
()
{
return
toscaDefaultNamespace
;
return
toscaDefaultNamespace
;
}
}
...
@@ -159,12 +156,11 @@ public class ToscaTemplate {
...
@@ -159,12 +156,11 @@ public class ToscaTemplate {
/**
/**
* Get templateName
* Get templateName
*
* @return templateName
* @return templateName
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getTemplateName
()
{
public
String
getTemplateName
()
{
return
templateName
;
return
templateName
;
}
}
...
@@ -180,10 +176,8 @@ public class ToscaTemplate {
...
@@ -180,10 +176,8 @@ public class ToscaTemplate {
/**
/**
* Get topologyTemplate
* Get topologyTemplate
*
* @return topologyTemplate
* @return topologyTemplate
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
@Valid
@Valid
...
@@ -203,12 +197,11 @@ public class ToscaTemplate {
...
@@ -203,12 +197,11 @@ public class ToscaTemplate {
/**
/**
* Get templateAuthor
* Get templateAuthor
*
* @return templateAuthor
* @return templateAuthor
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getTemplateAuthor
()
{
public
String
getTemplateAuthor
()
{
return
templateAuthor
;
return
templateAuthor
;
}
}
...
@@ -224,12 +217,11 @@ public class ToscaTemplate {
...
@@ -224,12 +217,11 @@ public class ToscaTemplate {
/**
/**
* Get templateVersion
* Get templateVersion
*
* @return templateVersion
* @return templateVersion
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getTemplateVersion
()
{
public
String
getTemplateVersion
()
{
return
templateVersion
;
return
templateVersion
;
}
}
...
@@ -245,12 +237,11 @@ public class ToscaTemplate {
...
@@ -245,12 +237,11 @@ public class ToscaTemplate {
/**
/**
* Get description
* Get description
*
* @return description
* @return description
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
String
getDescription
()
{
public
String
getDescription
()
{
return
description
;
return
description
;
}
}
...
@@ -259,14 +250,14 @@ public class ToscaTemplate {
...
@@ -259,14 +250,14 @@ public class ToscaTemplate {
this
.
description
=
description
;
this
.
description
=
description
;
}
}
public
ToscaTemplate
imports
(
List
<
Map
<
String
,
Object
>>
imports
)
{
public
ToscaTemplate
imports
(
List
<
Map
<
String
,
String
>>
imports
)
{
this
.
imports
=
imports
;
this
.
imports
=
imports
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
addImportsItem
(
Map
<
String
,
Object
>
importsItem
)
{
public
ToscaTemplate
addImportsItem
(
Map
<
String
,
String
>
importsItem
)
{
if
(
this
.
imports
==
null
)
{
if
(
this
.
imports
==
null
)
{
this
.
imports
=
new
ArrayList
<
Map
<
String
,
Object
>>();
this
.
imports
=
new
ArrayList
<
Map
<
String
,
String
>>();
}
}
this
.
imports
.
add
(
importsItem
);
this
.
imports
.
add
(
importsItem
);
return
this
;
return
this
;
...
@@ -274,30 +265,28 @@ public class ToscaTemplate {
...
@@ -274,30 +265,28 @@ public class ToscaTemplate {
/**
/**
* Get imports
* Get imports
*
* @return imports
* @return imports
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
@Valid
@Valid
public
List
<
Map
<
String
,
Object
>>
getImports
()
{
public
List
<
Map
<
String
,
String
>>
getImports
()
{
return
imports
;
return
imports
;
}
}
public
void
setImports
(
List
<
Map
<
String
,
Object
>>
imports
)
{
public
void
setImports
(
List
<
Map
<
String
,
String
>>
imports
)
{
this
.
imports
=
imports
;
this
.
imports
=
imports
;
}
}
public
ToscaTemplate
dslDefinitions
(
Map
<
String
,
Object
>
dslDefinitions
)
{
public
ToscaTemplate
dslDefinitions
(
Map
<
String
,
String
>
dslDefinitions
)
{
this
.
dslDefinitions
=
dslDefinitions
;
this
.
dslDefinitions
=
dslDefinitions
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putDslDefinitionsItem
(
String
key
,
Object
dslDefinitionsItem
)
{
public
ToscaTemplate
putDslDefinitionsItem
(
String
key
,
String
dslDefinitionsItem
)
{
if
(
this
.
dslDefinitions
==
null
)
{
if
(
this
.
dslDefinitions
==
null
)
{
this
.
dslDefinitions
=
new
HashMap
<
String
,
Object
>();
this
.
dslDefinitions
=
new
HashMap
<
String
,
String
>();
}
}
this
.
dslDefinitions
.
put
(
key
,
dslDefinitionsItem
);
this
.
dslDefinitions
.
put
(
key
,
dslDefinitionsItem
);
return
this
;
return
this
;
...
@@ -305,28 +294,27 @@ public class ToscaTemplate {
...
@@ -305,28 +294,27 @@ public class ToscaTemplate {
/**
/**
* Get dslDefinitions
* Get dslDefinitions
*
* @return dslDefinitions
* @return dslDefinitions
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getDslDefinitions
()
{
public
Map
<
String
,
String
>
getDslDefinitions
()
{
return
dslDefinitions
;
return
dslDefinitions
;
}
}
public
void
setDslDefinitions
(
Map
<
String
,
Object
>
dslDefinitions
)
{
public
void
setDslDefinitions
(
Map
<
String
,
String
>
dslDefinitions
)
{
this
.
dslDefinitions
=
dslDefinitions
;
this
.
dslDefinitions
=
dslDefinitions
;
}
}
public
ToscaTemplate
nodeTypes
(
Map
<
String
,
Object
>
nodeTypes
)
{
public
ToscaTemplate
nodeTypes
(
Map
<
String
,
String
>
nodeTypes
)
{
this
.
nodeTypes
=
nodeTypes
;
this
.
nodeTypes
=
nodeTypes
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putNodeTypesItem
(
String
key
,
Object
nodeTypesItem
)
{
public
ToscaTemplate
putNodeTypesItem
(
String
key
,
String
nodeTypesItem
)
{
if
(
this
.
nodeTypes
==
null
)
{
if
(
this
.
nodeTypes
==
null
)
{
this
.
nodeTypes
=
new
HashMap
<
String
,
Object
>();
this
.
nodeTypes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
nodeTypes
.
put
(
key
,
nodeTypesItem
);
this
.
nodeTypes
.
put
(
key
,
nodeTypesItem
);
return
this
;
return
this
;
...
@@ -334,28 +322,27 @@ public class ToscaTemplate {
...
@@ -334,28 +322,27 @@ public class ToscaTemplate {
/**
/**
* Get nodeTypes
* Get nodeTypes
*
* @return nodeTypes
* @return nodeTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getNodeTypes
()
{
public
Map
<
String
,
String
>
getNodeTypes
()
{
return
nodeTypes
;
return
nodeTypes
;
}
}
public
void
setNodeTypes
(
Map
<
String
,
Object
>
nodeTypes
)
{
public
void
setNodeTypes
(
Map
<
String
,
String
>
nodeTypes
)
{
this
.
nodeTypes
=
nodeTypes
;
this
.
nodeTypes
=
nodeTypes
;
}
}
public
ToscaTemplate
relationshipTypes
(
Map
<
String
,
Object
>
relationshipTypes
)
{
public
ToscaTemplate
relationshipTypes
(
Map
<
String
,
String
>
relationshipTypes
)
{
this
.
relationshipTypes
=
relationshipTypes
;
this
.
relationshipTypes
=
relationshipTypes
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putRelationshipTypesItem
(
String
key
,
Object
relationshipTypesItem
)
{
public
ToscaTemplate
putRelationshipTypesItem
(
String
key
,
String
relationshipTypesItem
)
{
if
(
this
.
relationshipTypes
==
null
)
{
if
(
this
.
relationshipTypes
==
null
)
{
this
.
relationshipTypes
=
new
HashMap
<
String
,
Object
>();
this
.
relationshipTypes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
relationshipTypes
.
put
(
key
,
relationshipTypesItem
);
this
.
relationshipTypes
.
put
(
key
,
relationshipTypesItem
);
return
this
;
return
this
;
...
@@ -363,28 +350,27 @@ public class ToscaTemplate {
...
@@ -363,28 +350,27 @@ public class ToscaTemplate {
/**
/**
* Get relationshipTypes
* Get relationshipTypes
*
* @return relationshipTypes
* @return relationshipTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getRelationshipTypes
()
{
public
Map
<
String
,
String
>
getRelationshipTypes
()
{
return
relationshipTypes
;
return
relationshipTypes
;
}
}
public
void
setRelationshipTypes
(
Map
<
String
,
Object
>
relationshipTypes
)
{
public
void
setRelationshipTypes
(
Map
<
String
,
String
>
relationshipTypes
)
{
this
.
relationshipTypes
=
relationshipTypes
;
this
.
relationshipTypes
=
relationshipTypes
;
}
}
public
ToscaTemplate
relationshipTemplates
(
Map
<
String
,
Object
>
relationshipTemplates
)
{
public
ToscaTemplate
relationshipTemplates
(
Map
<
String
,
String
>
relationshipTemplates
)
{
this
.
relationshipTemplates
=
relationshipTemplates
;
this
.
relationshipTemplates
=
relationshipTemplates
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putRelationshipTemplatesItem
(
String
key
,
Object
relationshipTemplatesItem
)
{
public
ToscaTemplate
putRelationshipTemplatesItem
(
String
key
,
String
relationshipTemplatesItem
)
{
if
(
this
.
relationshipTemplates
==
null
)
{
if
(
this
.
relationshipTemplates
==
null
)
{
this
.
relationshipTemplates
=
new
HashMap
<
String
,
Object
>();
this
.
relationshipTemplates
=
new
HashMap
<
String
,
String
>();
}
}
this
.
relationshipTemplates
.
put
(
key
,
relationshipTemplatesItem
);
this
.
relationshipTemplates
.
put
(
key
,
relationshipTemplatesItem
);
return
this
;
return
this
;
...
@@ -392,28 +378,27 @@ public class ToscaTemplate {
...
@@ -392,28 +378,27 @@ public class ToscaTemplate {
/**
/**
* Get relationshipTemplates
* Get relationshipTemplates
*
* @return relationshipTemplates
* @return relationshipTemplates
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getRelationshipTemplates
()
{
public
Map
<
String
,
String
>
getRelationshipTemplates
()
{
return
relationshipTemplates
;
return
relationshipTemplates
;
}
}
public
void
setRelationshipTemplates
(
Map
<
String
,
Object
>
relationshipTemplates
)
{
public
void
setRelationshipTemplates
(
Map
<
String
,
String
>
relationshipTemplates
)
{
this
.
relationshipTemplates
=
relationshipTemplates
;
this
.
relationshipTemplates
=
relationshipTemplates
;
}
}
public
ToscaTemplate
capabilityTypes
(
Map
<
String
,
Object
>
capabilityTypes
)
{
public
ToscaTemplate
capabilityTypes
(
Map
<
String
,
String
>
capabilityTypes
)
{
this
.
capabilityTypes
=
capabilityTypes
;
this
.
capabilityTypes
=
capabilityTypes
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putCapabilityTypesItem
(
String
key
,
Object
capabilityTypesItem
)
{
public
ToscaTemplate
putCapabilityTypesItem
(
String
key
,
String
capabilityTypesItem
)
{
if
(
this
.
capabilityTypes
==
null
)
{
if
(
this
.
capabilityTypes
==
null
)
{
this
.
capabilityTypes
=
new
HashMap
<
String
,
Object
>();
this
.
capabilityTypes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
capabilityTypes
.
put
(
key
,
capabilityTypesItem
);
this
.
capabilityTypes
.
put
(
key
,
capabilityTypesItem
);
return
this
;
return
this
;
...
@@ -421,28 +406,27 @@ public class ToscaTemplate {
...
@@ -421,28 +406,27 @@ public class ToscaTemplate {
/**
/**
* Get capabilityTypes
* Get capabilityTypes
*
* @return capabilityTypes
* @return capabilityTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getCapabilityTypes
()
{
public
Map
<
String
,
String
>
getCapabilityTypes
()
{
return
capabilityTypes
;
return
capabilityTypes
;
}
}
public
void
setCapabilityTypes
(
Map
<
String
,
Object
>
capabilityTypes
)
{
public
void
setCapabilityTypes
(
Map
<
String
,
String
>
capabilityTypes
)
{
this
.
capabilityTypes
=
capabilityTypes
;
this
.
capabilityTypes
=
capabilityTypes
;
}
}
public
ToscaTemplate
artifactTypes
(
Map
<
String
,
Object
>
artifactTypes
)
{
public
ToscaTemplate
artifactTypes
(
Map
<
String
,
String
>
artifactTypes
)
{
this
.
artifactTypes
=
artifactTypes
;
this
.
artifactTypes
=
artifactTypes
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putArtifactTypesItem
(
String
key
,
Object
artifactTypesItem
)
{
public
ToscaTemplate
putArtifactTypesItem
(
String
key
,
String
artifactTypesItem
)
{
if
(
this
.
artifactTypes
==
null
)
{
if
(
this
.
artifactTypes
==
null
)
{
this
.
artifactTypes
=
new
HashMap
<
String
,
Object
>();
this
.
artifactTypes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
artifactTypes
.
put
(
key
,
artifactTypesItem
);
this
.
artifactTypes
.
put
(
key
,
artifactTypesItem
);
return
this
;
return
this
;
...
@@ -450,28 +434,27 @@ public class ToscaTemplate {
...
@@ -450,28 +434,27 @@ public class ToscaTemplate {
/**
/**
* Get artifactTypes
* Get artifactTypes
*
* @return artifactTypes
* @return artifactTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getArtifactTypes
()
{
public
Map
<
String
,
String
>
getArtifactTypes
()
{
return
artifactTypes
;
return
artifactTypes
;
}
}
public
void
setArtifactTypes
(
Map
<
String
,
Object
>
artifactTypes
)
{
public
void
setArtifactTypes
(
Map
<
String
,
String
>
artifactTypes
)
{
this
.
artifactTypes
=
artifactTypes
;
this
.
artifactTypes
=
artifactTypes
;
}
}
public
ToscaTemplate
dataTypes
(
Map
<
String
,
Object
>
dataTypes
)
{
public
ToscaTemplate
dataTypes
(
Map
<
String
,
String
>
dataTypes
)
{
this
.
dataTypes
=
dataTypes
;
this
.
dataTypes
=
dataTypes
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putDataTypesItem
(
String
key
,
Object
dataTypesItem
)
{
public
ToscaTemplate
putDataTypesItem
(
String
key
,
String
dataTypesItem
)
{
if
(
this
.
dataTypes
==
null
)
{
if
(
this
.
dataTypes
==
null
)
{
this
.
dataTypes
=
new
HashMap
<
String
,
Object
>();
this
.
dataTypes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
dataTypes
.
put
(
key
,
dataTypesItem
);
this
.
dataTypes
.
put
(
key
,
dataTypesItem
);
return
this
;
return
this
;
...
@@ -479,28 +462,27 @@ public class ToscaTemplate {
...
@@ -479,28 +462,27 @@ public class ToscaTemplate {
/**
/**
* Get dataTypes
* Get dataTypes
*
* @return dataTypes
* @return dataTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getDataTypes
()
{
public
Map
<
String
,
String
>
getDataTypes
()
{
return
dataTypes
;
return
dataTypes
;
}
}
public
void
setDataTypes
(
Map
<
String
,
Object
>
dataTypes
)
{
public
void
setDataTypes
(
Map
<
String
,
String
>
dataTypes
)
{
this
.
dataTypes
=
dataTypes
;
this
.
dataTypes
=
dataTypes
;
}
}
public
ToscaTemplate
interfaceTypes
(
Map
<
String
,
Object
>
interfaceTypes
)
{
public
ToscaTemplate
interfaceTypes
(
Map
<
String
,
String
>
interfaceTypes
)
{
this
.
interfaceTypes
=
interfaceTypes
;
this
.
interfaceTypes
=
interfaceTypes
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putInterfaceTypesItem
(
String
key
,
Object
interfaceTypesItem
)
{
public
ToscaTemplate
putInterfaceTypesItem
(
String
key
,
String
interfaceTypesItem
)
{
if
(
this
.
interfaceTypes
==
null
)
{
if
(
this
.
interfaceTypes
==
null
)
{
this
.
interfaceTypes
=
new
HashMap
<
String
,
Object
>();
this
.
interfaceTypes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
interfaceTypes
.
put
(
key
,
interfaceTypesItem
);
this
.
interfaceTypes
.
put
(
key
,
interfaceTypesItem
);
return
this
;
return
this
;
...
@@ -508,17 +490,16 @@ public class ToscaTemplate {
...
@@ -508,17 +490,16 @@ public class ToscaTemplate {
/**
/**
* Get interfaceTypes
* Get interfaceTypes
*
* @return interfaceTypes
* @return interfaceTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getInterfaceTypes
()
{
public
Map
<
String
,
String
>
getInterfaceTypes
()
{
return
interfaceTypes
;
return
interfaceTypes
;
}
}
public
void
setInterfaceTypes
(
Map
<
String
,
Object
>
interfaceTypes
)
{
public
void
setInterfaceTypes
(
Map
<
String
,
String
>
interfaceTypes
)
{
this
.
interfaceTypes
=
interfaceTypes
;
this
.
interfaceTypes
=
interfaceTypes
;
}
}
...
@@ -537,12 +518,11 @@ public class ToscaTemplate {
...
@@ -537,12 +518,11 @@ public class ToscaTemplate {
/**
/**
* Get policyTypes
* Get policyTypes
*
* @return policyTypes
* @return policyTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
String
>
getPolicyTypes
()
{
public
Map
<
String
,
String
>
getPolicyTypes
()
{
return
policyTypes
;
return
policyTypes
;
}
}
...
@@ -551,14 +531,14 @@ public class ToscaTemplate {
...
@@ -551,14 +531,14 @@ public class ToscaTemplate {
this
.
policyTypes
=
policyTypes
;
this
.
policyTypes
=
policyTypes
;
}
}
public
ToscaTemplate
groupTypes
(
Map
<
String
,
Object
>
groupTypes
)
{
public
ToscaTemplate
groupTypes
(
Map
<
String
,
String
>
groupTypes
)
{
this
.
groupTypes
=
groupTypes
;
this
.
groupTypes
=
groupTypes
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putGroupTypesItem
(
String
key
,
Object
groupTypesItem
)
{
public
ToscaTemplate
putGroupTypesItem
(
String
key
,
String
groupTypesItem
)
{
if
(
this
.
groupTypes
==
null
)
{
if
(
this
.
groupTypes
==
null
)
{
this
.
groupTypes
=
new
HashMap
<
String
,
Object
>();
this
.
groupTypes
=
new
HashMap
<
String
,
String
>();
}
}
this
.
groupTypes
.
put
(
key
,
groupTypesItem
);
this
.
groupTypes
.
put
(
key
,
groupTypesItem
);
return
this
;
return
this
;
...
@@ -566,28 +546,27 @@ public class ToscaTemplate {
...
@@ -566,28 +546,27 @@ public class ToscaTemplate {
/**
/**
* Get groupTypes
* Get groupTypes
*
* @return groupTypes
* @return groupTypes
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getGroupTypes
()
{
public
Map
<
String
,
String
>
getGroupTypes
()
{
return
groupTypes
;
return
groupTypes
;
}
}
public
void
setGroupTypes
(
Map
<
String
,
Object
>
groupTypes
)
{
public
void
setGroupTypes
(
Map
<
String
,
String
>
groupTypes
)
{
this
.
groupTypes
=
groupTypes
;
this
.
groupTypes
=
groupTypes
;
}
}
public
ToscaTemplate
repositories
(
Map
<
String
,
Object
>
repositories
)
{
public
ToscaTemplate
repositories
(
Map
<
String
,
String
>
repositories
)
{
this
.
repositories
=
repositories
;
this
.
repositories
=
repositories
;
return
this
;
return
this
;
}
}
public
ToscaTemplate
putRepositoriesItem
(
String
key
,
Object
repositoriesItem
)
{
public
ToscaTemplate
putRepositoriesItem
(
String
key
,
String
repositoriesItem
)
{
if
(
this
.
repositories
==
null
)
{
if
(
this
.
repositories
==
null
)
{
this
.
repositories
=
new
HashMap
<
String
,
Object
>();
this
.
repositories
=
new
HashMap
<
String
,
String
>();
}
}
this
.
repositories
.
put
(
key
,
repositoriesItem
);
this
.
repositories
.
put
(
key
,
repositoriesItem
);
return
this
;
return
this
;
...
@@ -595,20 +574,20 @@ public class ToscaTemplate {
...
@@ -595,20 +574,20 @@ public class ToscaTemplate {
/**
/**
* Get repositories
* Get repositories
*
* @return repositories
* @return repositories
*
**/
*/
@ApiModelProperty
(
value
=
""
)
@ApiModelProperty
(
value
=
""
)
public
Map
<
String
,
Object
>
getRepositories
()
{
public
Map
<
String
,
String
>
getRepositories
()
{
return
repositories
;
return
repositories
;
}
}
public
void
setRepositories
(
Map
<
String
,
Object
>
repositories
)
{
public
void
setRepositories
(
Map
<
String
,
String
>
repositories
)
{
this
.
repositories
=
repositories
;
this
.
repositories
=
repositories
;
}
}
@Override
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
if
(
this
==
o
)
{
if
(
this
==
o
)
{
...
@@ -618,25 +597,25 @@ public class ToscaTemplate {
...
@@ -618,25 +597,25 @@ public class ToscaTemplate {
return
false
;
return
false
;
}
}
ToscaTemplate
toscaTemplate
=
(
ToscaTemplate
)
o
;
ToscaTemplate
toscaTemplate
=
(
ToscaTemplate
)
o
;
return
Objects
.
equals
(
this
.
toscaDefinitionsVersion
,
toscaTemplate
.
toscaDefinitionsVersion
)
return
Objects
.
equals
(
this
.
toscaDefinitionsVersion
,
toscaTemplate
.
toscaDefinitionsVersion
)
&&
&&
Objects
.
equals
(
this
.
toscaDefaultNamespace
,
toscaTemplate
.
toscaDefaultNamespace
)
Objects
.
equals
(
this
.
toscaDefaultNamespace
,
toscaTemplate
.
toscaDefaultNamespace
)
&&
&&
Objects
.
equals
(
this
.
templateName
,
toscaTemplate
.
templateName
)
Objects
.
equals
(
this
.
templateName
,
toscaTemplate
.
templateName
)
&&
&&
Objects
.
equals
(
this
.
topologyTemplate
,
toscaTemplate
.
topologyTemplate
)
Objects
.
equals
(
this
.
topologyTemplate
,
toscaTemplate
.
topologyTemplate
)
&&
&&
Objects
.
equals
(
this
.
templateAuthor
,
toscaTemplate
.
templateAuthor
)
Objects
.
equals
(
this
.
templateAuthor
,
toscaTemplate
.
templateAuthor
)
&&
&&
Objects
.
equals
(
this
.
templateVersion
,
toscaTemplate
.
templateVersion
)
Objects
.
equals
(
this
.
templateVersion
,
toscaTemplate
.
templateVersion
)
&&
&&
Objects
.
equals
(
this
.
description
,
toscaTemplate
.
description
)
Objects
.
equals
(
this
.
description
,
toscaTemplate
.
description
)
&&
&&
Objects
.
equals
(
this
.
imports
,
toscaTemplate
.
imports
)
Objects
.
equals
(
this
.
imports
,
toscaTemplate
.
imports
)
&&
&&
Objects
.
equals
(
this
.
dslDefinitions
,
toscaTemplate
.
dslDefinitions
)
Objects
.
equals
(
this
.
dslDefinitions
,
toscaTemplate
.
dslDefinitions
)
&&
&&
Objects
.
equals
(
this
.
nodeTypes
,
toscaTemplate
.
nodeTypes
)
Objects
.
equals
(
this
.
nodeTypes
,
toscaTemplate
.
nodeTypes
)
&&
&&
Objects
.
equals
(
this
.
relationshipTypes
,
toscaTemplate
.
relationshipTypes
)
Objects
.
equals
(
this
.
relationshipTypes
,
toscaTemplate
.
relationshipTypes
)
&&
&&
Objects
.
equals
(
this
.
relationshipTemplates
,
toscaTemplate
.
relationshipTemplates
)
Objects
.
equals
(
this
.
relationshipTemplates
,
toscaTemplate
.
relationshipTemplates
)
&&
&&
Objects
.
equals
(
this
.
capabilityTypes
,
toscaTemplate
.
capabilityTypes
)
Objects
.
equals
(
this
.
capabilityTypes
,
toscaTemplate
.
capabilityTypes
)
&&
&&
Objects
.
equals
(
this
.
artifactTypes
,
toscaTemplate
.
artifactTypes
)
Objects
.
equals
(
this
.
artifactTypes
,
toscaTemplate
.
artifactTypes
)
&&
&&
Objects
.
equals
(
this
.
dataTypes
,
toscaTemplate
.
dataTypes
)
Objects
.
equals
(
this
.
dataTypes
,
toscaTemplate
.
dataTypes
)
&&
&&
Objects
.
equals
(
this
.
interfaceTypes
,
toscaTemplate
.
interfaceTypes
)
Objects
.
equals
(
this
.
interfaceTypes
,
toscaTemplate
.
interfaceTypes
)
&&
&&
Objects
.
equals
(
this
.
policyTypes
,
toscaTemplate
.
policyTypes
)
Objects
.
equals
(
this
.
policyTypes
,
toscaTemplate
.
policyTypes
)
&&
&&
Objects
.
equals
(
this
.
groupTypes
,
toscaTemplate
.
groupTypes
)
Objects
.
equals
(
this
.
groupTypes
,
toscaTemplate
.
groupTypes
)
&&
&&
Objects
.
equals
(
this
.
repositories
,
toscaTemplate
.
repositories
);
Objects
.
equals
(
this
.
repositories
,
toscaTemplate
.
repositories
);
}
}
@Override
@Override
...
@@ -683,3 +662,4 @@ public class ToscaTemplate {
...
@@ -683,3 +662,4 @@ public class ToscaTemplate {
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
return
o
.
toString
().
replace
(
"\n"
,
"\n "
);
}
}
}
}
drip-commons/src/main/java/nl/uva/sne/drip/model/User.java
View file @
5dbca3ef
package
nl
.
uva
.
sne
.
drip
.
model
;
package
nl
.
uva
.
sne
.
drip
.
model
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
java.util.Objects
;
import
java.util.Objects
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
import
javax.validation.constraints.*
;
import
javax.validation.constraints.*
;
import
org.springframework.data.annotation.Id
;
/**
/**
* User
* User
*/
*/
@Validated
@Validated
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
3:58:45.661
Z"
)
@javax
.
annotation
.
Generated
(
value
=
"io.swagger.codegen.languages.SpringCodegen"
,
date
=
"2019-11-01T1
4:10:53.529
Z"
)
public
class
User
{
public
class
User
{
/**
* @return the id
*/
public
String
getId
()
{
return
id
;
}
/**
* @param id the id to set
*/
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
@Id
@JsonIgnore
private
String
id
;
@Override
@Override
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
public
boolean
equals
(
java
.
lang
.
Object
o
)
{
...
...
drip-manager/src/main/java/nl/uva/sne/drip/service/ProvisionerService.java
View file @
5dbca3ef
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
*/
*/
package
nl
.
uva
.
sne
.
drip
.
service
;
package
nl
.
uva
.
sne
.
drip
.
service
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
java.io.IOException
;
import
java.io.IOException
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
...
@@ -12,6 +13,7 @@ import java.util.Map;
...
@@ -12,6 +13,7 @@ import java.util.Map;
import
java.util.concurrent.TimeoutException
;
import
java.util.concurrent.TimeoutException
;
import
java.util.logging.Level
;
import
java.util.logging.Level
;
import
java.util.logging.Logger
;
import
java.util.logging.Logger
;
import
nl.uva.sne.drip.commons.sure_tosca.client.ApiException
;
import
nl.uva.sne.drip.commons.utils.ToscaHelper
;
import
nl.uva.sne.drip.commons.utils.ToscaHelper
;
import
nl.uva.sne.drip.model.Message
;
import
nl.uva.sne.drip.model.Message
;
import
nl.uva.sne.drip.model.NodeTemplate
;
import
nl.uva.sne.drip.model.NodeTemplate
;
...
@@ -40,7 +42,7 @@ public class ProvisionerService {
...
@@ -40,7 +42,7 @@ public class ProvisionerService {
ToscaHelper
toscaHelper
;
ToscaHelper
toscaHelper
;
private
Integer
toscaHelperID
;
private
Integer
toscaHelperID
;
public
String
provision
(
String
id
)
throws
IOException
{
public
String
provision
(
String
id
)
throws
IOException
,
JsonProcessingException
,
ApiException
{
String
ymlToscaTemplate
=
toscaTemplateService
.
findByID
(
id
);
String
ymlToscaTemplate
=
toscaTemplateService
.
findByID
(
id
);
ToscaTemplate
toscaTemplate
=
toscaTemplateService
.
getYaml2ToscaTemplate
(
ymlToscaTemplate
);
ToscaTemplate
toscaTemplate
=
toscaTemplateService
.
getYaml2ToscaTemplate
(
ymlToscaTemplate
);
...
@@ -48,7 +50,7 @@ public class ProvisionerService {
...
@@ -48,7 +50,7 @@ public class ProvisionerService {
toscaTemplate
=
addProvisionInterface
(
toscaTemplate
);
toscaTemplate
=
addProvisionInterface
(
toscaTemplate
);
return
null
;
return
toscaTemplateService
.
save
(
toscaTemplate
)
;
}
}
// private List<Map<String, NodeTemplate>> getVmTopologies(ToscaTemplate toscaTemplate) {
// private List<Map<String, NodeTemplate>> getVmTopologies(ToscaTemplate toscaTemplate) {
...
...
openAPI/TOSCA/NodeTemplate.yml
View file @
5dbca3ef
...
@@ -6,21 +6,21 @@
...
@@ -6,21 +6,21 @@
properties
:
properties
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
requirements
:
requirements
:
type
:
"
array"
type
:
"
array"
items
:
items
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
interfaces
:
interfaces
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
capabilities
:
capabilities
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
type
:
type
:
type
:
"
string"
type
:
"
string"
description
:
description
:
...
@@ -32,11 +32,11 @@
...
@@ -32,11 +32,11 @@
attributes
:
attributes
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
artifacts
:
artifacts
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
...
...
openAPI/TOSCA/TopologyTemplate.yml
View file @
5dbca3ef
...
@@ -14,22 +14,22 @@
...
@@ -14,22 +14,22 @@
relationship_templates
:
relationship_templates
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
outputs
:
outputs
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
groups
:
groups
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
substitution_mappings
:
substitution_mappings
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
policies
:
policies
:
type
:
"
array"
type
:
"
array"
items
:
items
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
openAPI/TOSCA/ToscaTemplate.yml
View file @
5dbca3ef
...
@@ -20,49 +20,49 @@
...
@@ -20,49 +20,49 @@
items
:
items
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
dsl_definitions
:
dsl_definitions
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
node_types
:
node_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
relationship_types
:
relationship_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
relationship_templates
:
relationship_templates
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
capability_types
:
capability_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
artifact_types
:
artifact_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
data_types
:
data_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
interface_types
:
interface_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
policy_types
:
policy_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
group_types
:
group_types
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
repositories
:
repositories
:
type
:
object
type
:
object
additionalProperties
:
additionalProperties
:
type
:
string
type
:
object
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