Merge pull request #1 from mingrammer/master

PR
pull/171/head
Leandro Damascena 5 years ago committed by GitHub
commit 366816c93e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,7 +4,7 @@ set -e
app_root_dir="diagrams"
# NOTE: azure icon set is not latest version
providers=("onprem" "aws" "azure" "gcp" "k8s" "alibabacloud" "oci" "programming")
providers=("onprem" "aws" "azure" "gcp" "firebase" "k8s" "alibabacloud" "oci" "programming")
if ! [ -x "$(command -v round)" ]; then
echo 'round is not installed'

@ -11,7 +11,7 @@ DIR_APP_ROOT = "diagrams"
DIR_RESOURCE = "resources"
DIR_TEMPLATE = "templates"
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "k8s", "alibabacloud", "oci", "programming")
PROVIDERS = ("base", "onprem", "aws", "azure", "gcp", "firebase", "k8s", "alibabacloud", "oci", "programming")
#########################
# Resource Processing #
@ -29,6 +29,7 @@ FILE_PREFIXES = {
"aws": ("Amazon-", "AWS-"),
"azure": ("Azure-",),
"gcp": ("Cloud-",),
"firebase": ("Cloud-",),
"k8s": (),
"alibabacloud": (),
"oci": ("OCI-",),
@ -51,6 +52,7 @@ UPPER_WORDS = {
"aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "nat", "vpc", "waf", "sdk"),
"azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm"),
"gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "iap", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
"firebase": ("ab", "fcm", "ml"),
"k8s": (
"api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs",
"sa", "sc", "sts", "svc",
@ -75,8 +77,10 @@ ALIASES = {
"onprem": {
"ci": {
"Circleci": "CircleCI",
"Gitlabci": "GitlabCI",
"Travisci": "TravisCI",
"Teamcity": "TC",
"Zuulci": "ZuulCI",
},
"container": {
"Rkt": "RKT",
@ -232,6 +236,11 @@ ALIASES = {
"Storage": "GCS",
},
},
"firebase": {
"grow": {
"Messaging": "FCM"
}
},
"k8s": {
"clusterconfig": {
"Limits": "LimitRange",

@ -0,0 +1,115 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Azure
class _General(_Azure):
_type = "general"
_icon_dir = "resources/azure/general"
class Allresources(_General):
_icon = "allresources.png"
class Azurehome(_General):
_icon = "azurehome.png"
class Developertools(_General):
_icon = "developertools.png"
class Helpsupport(_General):
_icon = "helpsupport.png"
class Information(_General):
_icon = "information.png"
class Managementgroups(_General):
_icon = "managementgroups.png"
class Marketplace(_General):
_icon = "marketplace.png"
class Quickstartcenter(_General):
_icon = "quickstartcenter.png"
class Recent(_General):
_icon = "recent.png"
class Reservations(_General):
_icon = "reservations.png"
class Resource(_General):
_icon = "resource.png"
class Resourcegroups(_General):
_icon = "resourcegroups.png"
class Servicehealth(_General):
_icon = "servicehealth.png"
class Shareddashboard(_General):
_icon = "shareddashboard.png"
class Subscriptions(_General):
_icon = "subscriptions.png"
class Support(_General):
_icon = "support.png"
class Supportrequests(_General):
_icon = "supportrequests.png"
class Tag(_General):
_icon = "tag.png"
class Tags(_General):
_icon = "tags.png"
class Templates(_General):
_icon = "templates.png"
class Twousericon(_General):
_icon = "twousericon.png"
class Userhealthicon(_General):
_icon = "userhealthicon.png"
class Usericon(_General):
_icon = "usericon.png"
class Userprivacy(_General):
_icon = "userprivacy.png"
class Userresource(_General):
_icon = "userresource.png"
class Whatsnew(_General):
_icon = "whatsnew.png"
# Aliases

@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Firebase
class _Base(_Firebase):
_type = "base"
_icon_dir = "resources/firebase/base"
class Firebase(_Base):
_icon = "firebase.png"
# Aliases

@ -0,0 +1,39 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Firebase
class _Develop(_Firebase):
_type = "develop"
_icon_dir = "resources/firebase/develop"
class Authentication(_Develop):
_icon = "authentication.png"
class Firestore(_Develop):
_icon = "firestore.png"
class Functions(_Develop):
_icon = "functions.png"
class Hosting(_Develop):
_icon = "hosting.png"
class MLKit(_Develop):
_icon = "ml-kit.png"
class RealtimeDatabase(_Develop):
_icon = "realtime-database.png"
class Storage(_Develop):
_icon = "storage.png"
# Aliases

@ -0,0 +1,15 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Firebase
class _Extentions(_Firebase):
_type = "extentions"
_icon_dir = "resources/firebase/extentions"
class Extensions(_Extentions):
_icon = "extensions.png"
# Aliases

@ -0,0 +1,45 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Firebase
class _Grow(_Firebase):
_type = "grow"
_icon_dir = "resources/firebase/grow"
class ABTesting(_Grow):
_icon = "ab-testing.png"
class AppIndexing(_Grow):
_icon = "app-indexing.png"
class DynamicLinks(_Grow):
_icon = "dynamic-links.png"
class InAppMessaging(_Grow):
_icon = "in-app-messaging.png"
class Invites(_Grow):
_icon = "invites.png"
class Messaging(_Grow):
_icon = "messaging.png"
class Predictions(_Grow):
_icon = "predictions.png"
class RemoteConfig(_Grow):
_icon = "remote-config.png"
# Aliases
FCM = Messaging

@ -0,0 +1,31 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.
from . import _Firebase
class _Quality(_Firebase):
_type = "quality"
_icon_dir = "resources/firebase/quality"
class AppDistribution(_Quality):
_icon = "app-distribution.png"
class CrashReporting(_Quality):
_icon = "crash-reporting.png"
class Crashlytics(_Quality):
_icon = "crashlytics.png"
class PerformanceMonitoring(_Quality):
_icon = "performance-monitoring.png"
class TestLab(_Quality):
_icon = "test-lab.png"
# Aliases

@ -12,6 +12,10 @@ class Circleci(_Ci):
_icon = "circleci.png"
class Gitlabci(_Ci):
_icon = "gitlabci.png"
class Jenkins(_Ci):
_icon = "jenkins.png"
@ -24,8 +28,14 @@ class Travisci(_Ci):
_icon = "travisci.png"
class Zuulci(_Ci):
_icon = "zuulci.png"
# Aliases
CircleCI = Circleci
GitlabCI = Gitlabci
TravisCI = Travisci
TC = Teamcity
ZuulCI = Zuulci

@ -20,6 +20,10 @@ class Cockroachdb(_Database):
_icon = "cockroachdb.png"
class Couchbase(_Database):
_icon = "couchbase.png"
class Couchdb(_Database):
_icon = "couchdb.png"

@ -24,6 +24,10 @@ class Prometheus(_Monitoring):
_icon = "prometheus.png"
class Sentry(_Monitoring):
_icon = "sentry.png"
class Splunk(_Monitoring):
_icon = "splunk.png"

@ -73,6 +73,35 @@ Node classes list of azure provider.
- **diagrams.azure.devops.Repos**
- **diagrams.azure.devops.TestPlans**
## azure.general
- **diagrams.azure.general.Allresources**
- **diagrams.azure.general.Azurehome**
- **diagrams.azure.general.Developertools**
- **diagrams.azure.general.Helpsupport**
- **diagrams.azure.general.Information**
- **diagrams.azure.general.Managementgroups**
- **diagrams.azure.general.Marketplace**
- **diagrams.azure.general.Quickstartcenter**
- **diagrams.azure.general.Recent**
- **diagrams.azure.general.Reservations**
- **diagrams.azure.general.Resource**
- **diagrams.azure.general.Resourcegroups**
- **diagrams.azure.general.Servicehealth**
- **diagrams.azure.general.Shareddashboard**
- **diagrams.azure.general.Subscriptions**
- **diagrams.azure.general.Support**
- **diagrams.azure.general.Supportrequests**
- **diagrams.azure.general.Tag**
- **diagrams.azure.general.Tags**
- **diagrams.azure.general.Templates**
- **diagrams.azure.general.Twousericon**
- **diagrams.azure.general.Userhealthicon**
- **diagrams.azure.general.Usericon**
- **diagrams.azure.general.Userprivacy**
- **diagrams.azure.general.Userresource**
- **diagrams.azure.general.Whatsnew**
## azure.identity
- **diagrams.azure.identity.AccessReview**
@ -89,6 +118,26 @@ Node classes list of azure provider.
- **diagrams.azure.identity.InformationProtection**
- **diagrams.azure.identity.ManagedIdentities**
## azure.integration
- **diagrams.azure.integration.APIForFhir**
- **diagrams.azure.integration.APIManagement**
- **diagrams.azure.integration.AppConfiguration**
- **diagrams.azure.integration.DataCatalog**
- **diagrams.azure.integration.EventGridDomains**
- **diagrams.azure.integration.EventGridSubscriptions**
- **diagrams.azure.integration.EventGridTopics**
- **diagrams.azure.integration.IntegrationAccounts**
- **diagrams.azure.integration.IntegrationServiceEnvironments**
- **diagrams.azure.integration.LogicAppsCustomConnector**
- **diagrams.azure.integration.LogicApps**
- **diagrams.azure.integration.SendgridAccounts**
- **diagrams.azure.integration.ServiceBusRelays**
- **diagrams.azure.integration.ServiceBus**
- **diagrams.azure.integration.ServiceCatalogManagedApplicationDefinitions**
- **diagrams.azure.integration.SoftwareAsAService**
- **diagrams.azure.integration.StorsimpleDeviceManagers**
## azure.iot
- **diagrams.azure.iot.DeviceProvisioningServices**
@ -191,23 +240,3 @@ Node classes list of azure provider.
- **diagrams.azure.web.NotificationHubNamespaces**
- **diagrams.azure.web.Search**
- **diagrams.azure.web.Signalr**
## azure.integration
- **diagrams.azure.integration.APIForFhir**
- **diagrams.azure.integration.APIManagement**
- **diagrams.azure.integration.AppConfiguration**
- **diagrams.azure.integration.DataCatalog**
- **diagrams.azure.integration.EventGridDomains**
- **diagrams.azure.integration.EventGridSubscriptions**
- **diagrams.azure.integration.EventGridTopics**
- **diagrams.azure.integration.IntegrationAccounts**
- **diagrams.azure.integration.IntegrationServiceEnvironments**
- **diagrams.azure.integration.LogicAppsCustomConnector**
- **diagrams.azure.integration.LogicApps**
- **diagrams.azure.integration.SendgridAccounts**
- **diagrams.azure.integration.ServiceBusRelays**
- **diagrams.azure.integration.ServiceBus**
- **diagrams.azure.integration.ServiceCatalogManagedApplicationDefinitions**
- **diagrams.azure.integration.SoftwareAsAService**
- **diagrams.azure.integration.StorsimpleDeviceManagers**

@ -0,0 +1,43 @@
---
id: firebase
title: Firebase
---
Node classes list of firebase provider.
## firebase.base
- **diagrams.firebase.base.Firebase**
## firebase.develop
- **diagrams.firebase.develop.Authentication**
- **diagrams.firebase.develop.Firestore**
- **diagrams.firebase.develop.Functions**
- **diagrams.firebase.develop.Hosting**
- **diagrams.firebase.develop.MLKit**
- **diagrams.firebase.develop.RealtimeDatabase**
- **diagrams.firebase.develop.Storage**
## firebase.extentions
- **diagrams.firebase.extentions.Extensions**
## firebase.grow
- **diagrams.firebase.grow.ABTesting**
- **diagrams.firebase.grow.AppIndexing**
- **diagrams.firebase.grow.DynamicLinks**
- **diagrams.firebase.grow.InAppMessaging**
- **diagrams.firebase.grow.Invites**
- **diagrams.firebase.grow.Messaging**, **FCM** (alias)
- **diagrams.firebase.grow.Predictions**
- **diagrams.firebase.grow.RemoteConfig**
## firebase.quality
- **diagrams.firebase.quality.AppDistribution**
- **diagrams.firebase.quality.CrashReporting**
- **diagrams.firebase.quality.Crashlytics**
- **diagrams.firebase.quality.PerformanceMonitoring**
- **diagrams.firebase.quality.TestLab**

@ -24,9 +24,11 @@ Node classes list of onprem provider.
## onprem.ci
- **diagrams.onprem.ci.Circleci**, **CircleCI** (alias)
- **diagrams.onprem.ci.Gitlabci**, **GitlabCI** (alias)
- **diagrams.onprem.ci.Jenkins**
- **diagrams.onprem.ci.Teamcity**, **TC** (alias)
- **diagrams.onprem.ci.Travisci**, **TravisCI** (alias)
- **diagrams.onprem.ci.Zuulci**, **ZuulCI** (alias)
## onprem.client
@ -49,6 +51,7 @@ Node classes list of onprem provider.
- **diagrams.onprem.database.Cassandra**
- **diagrams.onprem.database.Clickhouse**, **ClickHouse** (alias)
- **diagrams.onprem.database.Cockroachdb**, **CockroachDB** (alias)
- **diagrams.onprem.database.Couchbase**
- **diagrams.onprem.database.Couchdb**, **CouchDB** (alias)
- **diagrams.onprem.database.Dgraph**
- **diagrams.onprem.database.Hbase**, **HBase** (alias)
@ -101,6 +104,7 @@ Node classes list of onprem provider.
- **diagrams.onprem.monitoring.Grafana**
- **diagrams.onprem.monitoring.Kibana**
- **diagrams.onprem.monitoring.Prometheus**
- **diagrams.onprem.monitoring.Sentry**
- **diagrams.onprem.monitoring.Splunk**
- **diagrams.onprem.monitoring.Thanos**

@ -1,6 +1,6 @@
[tool.poetry]
name = "diagrams"
version = "0.11.0"
version = "0.12.0"
description = "Diagram as Code"
license = "MIT"
authors = ["mingrammer <mingrammer@gmail.com>"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

@ -50,7 +50,7 @@ def gen_apidoc(pvd: str, typ_paths: dict) -> str:
return name
typ_classes = {}
for typ, paths in typ_paths.items():
for typ, paths in sorted(typ_paths.items()):
typ_classes[typ] = []
for name in map(_gen_class_name, paths):
alias = cfg.ALIASES[pvd].get(typ, {}).get(name)

@ -53,6 +53,16 @@ def cleaner_gcp(f):
return f.lower()
def cleaner_firebase(f):
f = f.replace("_", "-")
f = "-".join(f.split())
for p in cfg.FILE_PREFIXES["firebase"]:
if f.startswith(p):
f = f[len(p) :]
break
return f.lower()
def cleaner_k8s(f):
f = f.replace("-256", "")
for p in cfg.FILE_PREFIXES["k8s"]:
@ -89,6 +99,7 @@ cleaners = {
"aws": cleaner_aws,
"azure": cleaner_azure,
"gcp": cleaner_gcp,
"firebase": cleaner_firebase,
"k8s": cleaner_k8s,
"alibabacloud": cleaner_alibabacloud,
"oci": cleaner_oci,

Loading…
Cancel
Save