Browse Source

Merge b7f78ca4d5 into 1c380b01b5

pull/1040/merge
tiaz0128 1 day ago
committed by GitHub
parent
commit
b1a5b23ee7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
42 changed files with 184 additions and 6 deletions
  1. +1
    -0
      autogen.sh
  2. +9
    -2
      config.py
  3. +12
    -0
      diagrams/snowflake/__init__.py
  4. +43
    -0
      diagrams/snowflake/bugworkload.py
  5. +43
    -0
      diagrams/snowflake/workload.py
  6. +60
    -0
      docs/nodes/snowflake.md
  7. BIN
      resources/snowflake/bugworkload/ai-ml.png
  8. BIN
      resources/snowflake/bugworkload/applications.png
  9. BIN
      resources/snowflake/bugworkload/collaboration.png
  10. BIN
      resources/snowflake/bugworkload/cybersecurity.png
  11. BIN
      resources/snowflake/bugworkload/data-engineering.png
  12. BIN
      resources/snowflake/bugworkload/data-lake.png
  13. BIN
      resources/snowflake/bugworkload/data-warehouse.png
  14. BIN
      resources/snowflake/bugworkload/unistore.png
  15. BIN
      resources/snowflake/workload/ai-ml.png
  16. BIN
      resources/snowflake/workload/applications.png
  17. BIN
      resources/snowflake/workload/collaboration.png
  18. BIN
      resources/snowflake/workload/cybersecurity.png
  19. BIN
      resources/snowflake/workload/data-engineering.png
  20. BIN
      resources/snowflake/workload/data-lake.png
  21. BIN
      resources/snowflake/workload/data-warehouse.png
  22. BIN
      resources/snowflake/workload/unistore.png
  23. +6
    -4
      scripts/generate.py
  24. +6
    -0
      scripts/resource.py
  25. +3
    -0
      website/i18n/en.json
  26. +1
    -0
      website/sidebars.json
  27. BIN
      website/static/img/resources/snowflake/bugworkload/ai-ml.png
  28. BIN
      website/static/img/resources/snowflake/bugworkload/applications.png
  29. BIN
      website/static/img/resources/snowflake/bugworkload/collaboration.png
  30. BIN
      website/static/img/resources/snowflake/bugworkload/cybersecurity.png
  31. BIN
      website/static/img/resources/snowflake/bugworkload/data-engineering.png
  32. BIN
      website/static/img/resources/snowflake/bugworkload/data-lake.png
  33. BIN
      website/static/img/resources/snowflake/bugworkload/data-warehouse.png
  34. BIN
      website/static/img/resources/snowflake/bugworkload/unistore.png
  35. BIN
      website/static/img/resources/snowflake/workload/ai-ml.png
  36. BIN
      website/static/img/resources/snowflake/workload/applications.png
  37. BIN
      website/static/img/resources/snowflake/workload/collaboration.png
  38. BIN
      website/static/img/resources/snowflake/workload/cybersecurity.png
  39. BIN
      website/static/img/resources/snowflake/workload/data-engineering.png
  40. BIN
      website/static/img/resources/snowflake/workload/data-lake.png
  41. BIN
      website/static/img/resources/snowflake/workload/data-warehouse.png
  42. BIN
      website/static/img/resources/snowflake/workload/unistore.png

+ 1
- 0
autogen.sh View File

@@ -20,6 +20,7 @@ providers=(
"generic"
"openstack"
"outscale"
"snowflake"
)

if ! [ -x "$(command -v round)" ]; then


+ 9
- 2
config.py View File

@@ -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",),
"ibm": ("ibm",),
"snowflake": ("sn",),
}

TITLE_WORDS = {
@@ -110,6 +113,9 @@ TITLE_WORDS = {
"ibm": {
"ibm": "IBMCloud"
},
"snowflake": {
"snowflake": "Snowflake"
}
}

# TODO: check if the classname exists
@@ -473,4 +479,5 @@ ALIASES = {
"Tripleo": "TripleO",
}
},
"snowflake": {},
}

+ 12
- 0
diagrams/snowflake/__init__.py View File

@@ -0,0 +1,12 @@
"""
Saas provides a set of general saas services.
"""

from diagrams import Node


class _Snowflake(Node):
_provider = "snowflake"
_icon_dir = "resources/snowflake"

fontcolor = "#ffffff"

+ 43
- 0
diagrams/snowflake/bugworkload.py View File

@@ -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

+ 43
- 0
diagrams/snowflake/workload.py View File

@@ -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

+ 60
- 0
docs/nodes/snowflake.md View File

@@ -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**

BIN
resources/snowflake/bugworkload/ai-ml.png View File

Before After
Width: 92  |  Height: 125  |  Size: 2.7 KiB

BIN
resources/snowflake/bugworkload/applications.png View File

Before After
Width: 92  |  Height: 71  |  Size: 1.5 KiB

BIN
resources/snowflake/bugworkload/collaboration.png View File

Before After
Width: 102  |  Height: 114  |  Size: 2.5 KiB

BIN
resources/snowflake/bugworkload/cybersecurity.png View File

Before After
Width: 92  |  Height: 112  |  Size: 1.8 KiB

BIN
resources/snowflake/bugworkload/data-engineering.png View File

Before After
Width: 160  |  Height: 74  |  Size: 2.1 KiB

BIN
resources/snowflake/bugworkload/data-lake.png View File

Before After
Width: 162  |  Height: 99  |  Size: 1.0 KiB

BIN
resources/snowflake/bugworkload/data-warehouse.png View File

Before After
Width: 102  |  Height: 111  |  Size: 1.1 KiB

BIN
resources/snowflake/bugworkload/unistore.png View File

Before After
Width: 156  |  Height: 101  |  Size: 2.7 KiB

BIN
resources/snowflake/workload/ai-ml.png View File

Before After
Width: 91  |  Height: 124  |  Size: 2.6 KiB

BIN
resources/snowflake/workload/applications.png View File

Before After
Width: 92  |  Height: 71  |  Size: 1.5 KiB

BIN
resources/snowflake/workload/collaboration.png View File

Before After
Width: 102  |  Height: 111  |  Size: 2.2 KiB

BIN
resources/snowflake/workload/cybersecurity.png View File

Before After
Width: 91  |  Height: 112  |  Size: 1.3 KiB

BIN
resources/snowflake/workload/data-engineering.png View File

Before After
Width: 162  |  Height: 75  |  Size: 1.4 KiB

BIN
resources/snowflake/workload/data-lake.png View File

Before After
Width: 161  |  Height: 61  |  Size: 727 B

BIN
resources/snowflake/workload/data-warehouse.png View File

Before After
Width: 99  |  Height: 113  |  Size: 983 B

BIN
resources/snowflake/workload/unistore.png View File

Before After
Width: 156  |  Height: 101  |  Size: 2.6 KiB

+ 6
- 4
scripts/generate.py View File

@@ -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)



+ 6
- 0
scripts/resource.py View File

@@ -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,
}




+ 3
- 0
website/i18n/en.json View File

@@ -76,6 +76,9 @@
},
"nodes/saas": {
"title": "Saas"
},
"nodes/snowflake": {
"title": "Snowflake"
}
},
"links": {


+ 1
- 0
website/sidebars.json View File

@@ -24,6 +24,7 @@
"nodes/digitalocean",
"nodes/elastic",
"nodes/outscale",
"nodes/snowflake",
"nodes/generic",
"nodes/programming",
"nodes/saas",


BIN
website/static/img/resources/snowflake/bugworkload/ai-ml.png View File

Before After
Width: 92  |  Height: 125  |  Size: 2.7 KiB

BIN
website/static/img/resources/snowflake/bugworkload/applications.png View File

Before After
Width: 92  |  Height: 71  |  Size: 1.5 KiB

BIN
website/static/img/resources/snowflake/bugworkload/collaboration.png View File

Before After
Width: 102  |  Height: 114  |  Size: 2.5 KiB

BIN
website/static/img/resources/snowflake/bugworkload/cybersecurity.png View File

Before After
Width: 92  |  Height: 112  |  Size: 1.8 KiB

BIN
website/static/img/resources/snowflake/bugworkload/data-engineering.png View File

Before After
Width: 160  |  Height: 74  |  Size: 2.1 KiB

BIN
website/static/img/resources/snowflake/bugworkload/data-lake.png View File

Before After
Width: 162  |  Height: 99  |  Size: 1.0 KiB

BIN
website/static/img/resources/snowflake/bugworkload/data-warehouse.png View File

Before After
Width: 102  |  Height: 111  |  Size: 1.1 KiB

BIN
website/static/img/resources/snowflake/bugworkload/unistore.png View File

Before After
Width: 156  |  Height: 101  |  Size: 2.7 KiB

BIN
website/static/img/resources/snowflake/workload/ai-ml.png View File

Before After
Width: 91  |  Height: 124  |  Size: 2.6 KiB

BIN
website/static/img/resources/snowflake/workload/applications.png View File

Before After
Width: 92  |  Height: 71  |  Size: 1.5 KiB

BIN
website/static/img/resources/snowflake/workload/collaboration.png View File

Before After
Width: 102  |  Height: 111  |  Size: 2.2 KiB

BIN
website/static/img/resources/snowflake/workload/cybersecurity.png View File

Before After
Width: 91  |  Height: 112  |  Size: 1.3 KiB

BIN
website/static/img/resources/snowflake/workload/data-engineering.png View File

Before After
Width: 162  |  Height: 75  |  Size: 1.4 KiB

BIN
website/static/img/resources/snowflake/workload/data-lake.png View File

Before After
Width: 161  |  Height: 61  |  Size: 727 B

BIN
website/static/img/resources/snowflake/workload/data-warehouse.png View File

Before After
Width: 99  |  Height: 113  |  Size: 983 B

BIN
website/static/img/resources/snowflake/workload/unistore.png View File

Before After
Width: 156  |  Height: 101  |  Size: 2.6 KiB

Loading…
Cancel
Save