@@ -29,6 +29,7 @@ PROVIDERS = ( | |||
"generic", | |||
"openstack", | |||
"outscale", | |||
"snowflake", | |||
) | |||
######################### | |||
@@ -59,6 +60,7 @@ FILE_PREFIXES = { | |||
"outscale": (), | |||
"generic": (), | |||
"openstack": (), | |||
"snowflake": (), | |||
} | |||
######################### | |||
@@ -87,8 +89,9 @@ UPPER_WORDS = { | |||
"generic": ("vpn", "ios", "xen", "sql", "lxc"), | |||
"outscale": ("osc",), | |||
"openstack": ("rpm", "loci", "nfv", "ec2api"), | |||
"pve": ("pve"), | |||
"ibm": ("ibm"), | |||
"pve": ("pve"), # string? or tuple? | |||
"ibm": ("ibm"), # string? or tuple? | |||
"snowflake": ("sn",), | |||
} | |||
TITLE_WORDS = { | |||
@@ -110,6 +113,9 @@ TITLE_WORDS = { | |||
"ibm": { | |||
"ibm": "IBMCloud" | |||
}, | |||
"snowflake": { | |||
"snowflake": "Snowflake" | |||
} | |||
} | |||
# TODO: check if the classname exists | |||
@@ -468,4 +474,5 @@ ALIASES = { | |||
"Tripleo": "TripleO", | |||
} | |||
}, | |||
"snowflake": {}, | |||
} |
@@ -0,0 +1,43 @@ | |||
# This module is automatically generated by autogen.sh. DO NOT EDIT. | |||
from . import _Snowflake | |||
class _Bugworkload(_Snowflake): | |||
_type = "bugworkload" | |||
_icon_dir = "resources/snowflake/bugworkload" | |||
class AiMl(_Bugworkload): | |||
_icon = "ai-ml.png" | |||
class Applications(_Bugworkload): | |||
_icon = "applications.png" | |||
class Collaboration(_Bugworkload): | |||
_icon = "collaboration.png" | |||
class Cybersecurity(_Bugworkload): | |||
_icon = "cybersecurity.png" | |||
class DataEngineering(_Bugworkload): | |||
_icon = "data-engineering.png" | |||
class DataLake(_Bugworkload): | |||
_icon = "data-lake.png" | |||
class DataWarehouse(_Bugworkload): | |||
_icon = "data-warehouse.png" | |||
class Unistore(_Bugworkload): | |||
_icon = "unistore.png" | |||
# Aliases |
@@ -0,0 +1,43 @@ | |||
# This module is automatically generated by autogen.sh. DO NOT EDIT. | |||
from . import _Snowflake | |||
class _Workload(_Snowflake): | |||
_type = "workload" | |||
_icon_dir = "resources/snowflake/workload" | |||
class AiMl(_Workload): | |||
_icon = "ai-ml.png" | |||
class Applications(_Workload): | |||
_icon = "applications.png" | |||
class Collaboration(_Workload): | |||
_icon = "collaboration.png" | |||
class Cybersecurity(_Workload): | |||
_icon = "cybersecurity.png" | |||
class DataEngineering(_Workload): | |||
_icon = "data-engineering.png" | |||
class DataLake(_Workload): | |||
_icon = "data-lake.png" | |||
class DataWarehouse(_Workload): | |||
_icon = "data-warehouse.png" | |||
class Unistore(_Workload): | |||
_icon = "unistore.png" | |||
# Aliases |
@@ -0,0 +1,60 @@ | |||
--- | |||
id: snowflake | |||
title: Snowflake | |||
--- | |||
Node classes list of the snowflake provider. | |||
## snowflake.bugworkload | |||
<img width="30" src="/img/resources/snowflake/bugworkload/ai-ml.png" alt="AiMl" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.AiMl** | |||
<img width="30" src="/img/resources/snowflake/bugworkload/applications.png" alt="Applications" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.Applications** | |||
<img width="30" src="/img/resources/snowflake/bugworkload/collaboration.png" alt="Collaboration" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.Collaboration** | |||
<img width="30" src="/img/resources/snowflake/bugworkload/cybersecurity.png" alt="Cybersecurity" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.Cybersecurity** | |||
<img width="30" src="/img/resources/snowflake/bugworkload/data-engineering.png" alt="DataEngineering" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.DataEngineering** | |||
<img width="30" src="/img/resources/snowflake/bugworkload/data-lake.png" alt="DataLake" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.DataLake** | |||
<img width="30" src="/img/resources/snowflake/bugworkload/data-warehouse.png" alt="DataWarehouse" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.DataWarehouse** | |||
<img width="30" src="/img/resources/snowflake/bugworkload/unistore.png" alt="Unistore" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.bugworkload.Unistore** | |||
## snowflake.workload | |||
<img width="30" src="/img/resources/snowflake/workload/ai-ml.png" alt="AiMl" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.AiMl** | |||
<img width="30" src="/img/resources/snowflake/workload/applications.png" alt="Applications" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.Applications** | |||
<img width="30" src="/img/resources/snowflake/workload/collaboration.png" alt="Collaboration" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.Collaboration** | |||
<img width="30" src="/img/resources/snowflake/workload/cybersecurity.png" alt="Cybersecurity" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.Cybersecurity** | |||
<img width="30" src="/img/resources/snowflake/workload/data-engineering.png" alt="DataEngineering" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.DataEngineering** | |||
<img width="30" src="/img/resources/snowflake/workload/data-lake.png" alt="DataLake" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.DataLake** | |||
<img width="30" src="/img/resources/snowflake/workload/data-warehouse.png" alt="DataWarehouse" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.DataWarehouse** | |||
<img width="30" src="/img/resources/snowflake/workload/unistore.png" alt="Unistore" style="float: left; padding-right: 5px;" > | |||
**diagrams.snowflake.workload.Unistore** |
@@ -42,11 +42,11 @@ def gen_classes(pvd: str, typ: str, paths: Iterable[str]) -> str: | |||
def gen_apidoc(pvd: str, typ_paths: dict) -> str: | |||
try: | |||
default_tmp = cfg.TMPL_APIDOC.split('.') | |||
tmpl_file = f"{default_tmp[0]}_{pvd}.{default_tmp[1]}" | |||
tmpl = load_tmpl(tmpl_file) | |||
default_tmp = cfg.TMPL_APIDOC.split(".") | |||
tmpl_file = f"{default_tmp[0]}_{pvd}.{default_tmp[1]}" | |||
tmpl = load_tmpl(tmpl_file) | |||
except exceptions.TemplateNotFound: | |||
tmpl = load_tmpl(cfg.TMPL_APIDOC) | |||
tmpl = load_tmpl(cfg.TMPL_APIDOC) | |||
# TODO: remove | |||
def _gen_class_name(path: str) -> str: | |||
@@ -68,6 +68,8 @@ def gen_apidoc(pvd: str, typ_paths: dict) -> str: | |||
def make_module(pvd: str, typ: str, classes: str) -> None: | |||
"""Create a module file""" | |||
mod_path = os.path.join(app_root_dir(pvd), f"{typ}.py") | |||
os.makedirs(os.path.dirname(mod_path), exist_ok=True) | |||
with open(mod_path, "w+") as f: | |||
f.write(classes) | |||
@@ -84,6 +84,7 @@ def cleaner_k8s(f): | |||
break | |||
return f.lower() | |||
def cleaner_digitalocean(f): | |||
f = f.replace("-32", "") | |||
for p in cfg.FILE_PREFIXES["digitalocean"]: | |||
@@ -135,6 +136,10 @@ def cleaner_openstack(f): | |||
return f.lower() | |||
def cleaner_snowflake(f): | |||
return f.lower() | |||
cleaners = { | |||
"onprem": cleaner_onprem, | |||
"aws": cleaner_aws, | |||
@@ -152,6 +157,7 @@ cleaners = { | |||
"outscale": cleaner_outscale, | |||
"generic": cleaner_generic, | |||
"openstack": cleaner_openstack, | |||
"snowflake": cleaner_snowflake, | |||
} | |||
@@ -76,6 +76,9 @@ | |||
}, | |||
"nodes/saas": { | |||
"title": "Saas" | |||
}, | |||
"nodes/snowflake": { | |||
"title": "Snowflake" | |||
} | |||
}, | |||
"links": { | |||
@@ -24,6 +24,7 @@ | |||
"nodes/digitalocean", | |||
"nodes/elastic", | |||
"nodes/outscale", | |||
"nodes/snowflake", | |||
"nodes/generic", | |||
"nodes/programming", | |||
"nodes/saas", | |||