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
de852d8e
Commit
de852d8e
authored
Oct 30, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed attributes in model
parent
0628c21a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
NodeTemplate.yml
openAPI/TOSCA/NodeTemplate.yml
+2
-2
TopologyTemplate.yml
openAPI/TOSCA/TopologyTemplate.yml
+3
-5
ToscaTemplate.yml
openAPI/TOSCA/ToscaTemplate.yml
+3
-3
tosca_template_service.py
...flask-server/sure_tosca/service/tosca_template_service.py
+1
-1
No files found.
openAPI/TOSCA/NodeTemplate.yml
View file @
de852d8e
...
...
@@ -2,7 +2,7 @@
type
:
"
object"
properties
:
derived_from
:
type
:
"
string"
type
:
"
string"
properties
:
type
:
object
additionalProperties
:
...
...
@@ -24,7 +24,7 @@
type
:
type
:
"
string"
description
:
type
:
"
string"
type
:
"
string"
directives
:
type
:
"
array"
items
:
...
...
openAPI/TOSCA/TopologyTemplate.yml
View file @
de852d8e
...
...
@@ -18,11 +18,9 @@
additionalProperties
:
type
:
object
outputs
:
type
:
"
array"
items
:
type
:
object
additionalProperties
:
type
:
object
type
:
object
additionalProperties
:
type
:
object
groups
:
type
:
object
additionalProperties
:
...
...
openAPI/TOSCA/ToscaTemplate.yml
View file @
de852d8e
...
...
@@ -10,11 +10,11 @@
topology_template
:
$ref
:
"
https://raw.githubusercontent.com/skoulouzis/DRIP/DRIP_3.0/openAPI/TOSCA/TopologyTemplate.yml#/TopologyTemplate"
template_author
:
type
:
"
string"
type
:
"
string"
template_version
:
type
:
"
string"
type
:
"
string"
description
:
type
:
"
string"
type
:
"
string"
imports
:
type
:
"
array"
items
:
...
...
sure_tosca-flask-server/sure_tosca/service/tosca_template_service.py
View file @
de852d8e
...
...
@@ -73,7 +73,7 @@ def get_tosca_template_dict_by_id(id):
def
save
(
file
):
tosca_template_file_path
=
os
.
path
.
join
(
db_dir_path
,
file
.
filename
)
#
tosca_template_file_path = os.path.join(db_dir_path, file.filename)
tosca_template_dict
=
yaml
.
safe_load
(
file
.
stream
)
tosca_template_model
=
ToscaTemplateModel
.
from_dict
(
tosca_template_dict
)
tosca_template
=
ToscaTemplate
(
yaml_dict_tpl
=
tosca_template_dict
)
...
...
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