Add nodes for Firebase (#167)

* Add nodes for Firebase

* Fix sort

* Fix position of configuration to keep order consistency

* Fix class names
pull/173/head
Taro Kawazoe 4 years ago committed by GitHub
parent c17bf1e2d2
commit f8ba6a8659
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",
@ -234,6 +236,11 @@ ALIASES = {
"Storage": "GCS",
},
},
"firebase": {
"grow": {
"Messaging": "FCM"
}
},
"k8s": {
"clusterconfig": {
"Limits": "LimitRange",

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

@ -5,46 +5,42 @@ title: Azure
Node classes list of azure provider.
## azure.mobile
- **diagrams.azure.mobile.AppServiceMobile**
- **diagrams.azure.mobile.MobileEngagement**
- **diagrams.azure.mobile.NotificationHubs**
## azure.identity
## azure.analytics
- **diagrams.azure.identity.AccessReview**
- **diagrams.azure.identity.ActiveDirectoryConnectHealth**
- **diagrams.azure.identity.ActiveDirectory**
- **diagrams.azure.identity.ADB2C**
- **diagrams.azure.identity.ADDomainServices**
- **diagrams.azure.identity.ADIdentityProtection**
- **diagrams.azure.identity.ADPrivilegedIdentityManagement**
- **diagrams.azure.identity.AppRegistrations**
- **diagrams.azure.identity.ConditionalAccess**
- **diagrams.azure.identity.EnterpriseApplications**
- **diagrams.azure.identity.IdentityGovernance**
- **diagrams.azure.identity.InformationProtection**
- **diagrams.azure.identity.ManagedIdentities**
- **diagrams.azure.analytics.AnalysisServices**
- **diagrams.azure.analytics.DataExplorerClusters**
- **diagrams.azure.analytics.DataFactories**
- **diagrams.azure.analytics.DataLakeAnalytics**
- **diagrams.azure.analytics.DataLakeStoreGen1**
- **diagrams.azure.analytics.Databricks**
- **diagrams.azure.analytics.EventHubClusters**
- **diagrams.azure.analytics.EventHubs**
- **diagrams.azure.analytics.Hdinsightclusters**
- **diagrams.azure.analytics.LogAnalyticsWorkspaces**
- **diagrams.azure.analytics.StreamAnalyticsJobs**
## azure.storage
## azure.compute
- **diagrams.azure.storage.ArchiveStorage**
- **diagrams.azure.storage.Azurefxtedgefiler**
- **diagrams.azure.storage.BlobStorage**
- **diagrams.azure.storage.DataBoxEdgeDataBoxGateway**
- **diagrams.azure.storage.DataBox**
- **diagrams.azure.storage.DataLakeStorage**
- **diagrams.azure.storage.GeneralStorage**
- **diagrams.azure.storage.NetappFiles**
- **diagrams.azure.storage.QueuesStorage**
- **diagrams.azure.storage.StorageAccountsClassic**
- **diagrams.azure.storage.StorageAccounts**
- **diagrams.azure.storage.StorageExplorer**
- **diagrams.azure.storage.StorageSyncServices**
- **diagrams.azure.storage.StorsimpleDataManagers**
- **diagrams.azure.storage.StorsimpleDeviceManagers**
- **diagrams.azure.storage.TableStorage**
- **diagrams.azure.compute.AvailabilitySets**
- **diagrams.azure.compute.BatchAccounts**
- **diagrams.azure.compute.CitrixVirtualDesktopsEssentials**
- **diagrams.azure.compute.CloudServicesClassic**
- **diagrams.azure.compute.CloudServices**
- **diagrams.azure.compute.CloudsimpleVirtualMachines**
- **diagrams.azure.compute.ContainerInstances**
- **diagrams.azure.compute.ContainerRegistries**, **ACR** (alias)
- **diagrams.azure.compute.DiskSnapshots**
- **diagrams.azure.compute.Disks**
- **diagrams.azure.compute.FunctionApps**
- **diagrams.azure.compute.KubernetesServices**, **AKS** (alias)
- **diagrams.azure.compute.MeshApplications**
- **diagrams.azure.compute.SAPHANAOnAzure**
- **diagrams.azure.compute.ServiceFabricClusters**
- **diagrams.azure.compute.VMClassic**
- **diagrams.azure.compute.VMImages**
- **diagrams.azure.compute.VMLinux**
- **diagrams.azure.compute.VMWindows**
- **diagrams.azure.compute.VM**
## azure.database
@ -77,31 +73,50 @@ Node classes list of azure provider.
- **diagrams.azure.devops.Repos**
- **diagrams.azure.devops.TestPlans**
## azure.web
## azure.general
- **diagrams.azure.web.APIConnections**
- **diagrams.azure.web.AppServiceCertificates**
- **diagrams.azure.web.AppServiceDomains**
- **diagrams.azure.web.AppServiceEnvironments**
- **diagrams.azure.web.AppServicePlans**
- **diagrams.azure.web.AppServices**
- **diagrams.azure.web.MediaServices**
- **diagrams.azure.web.NotificationHubNamespaces**
- **diagrams.azure.web.Search**
- **diagrams.azure.web.Signalr**
- **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.iot
## azure.identity
- **diagrams.azure.iot.DeviceProvisioningServices**
- **diagrams.azure.iot.DigitalTwins**
- **diagrams.azure.iot.IotCentralApplications**
- **diagrams.azure.iot.IotHubSecurity**
- **diagrams.azure.iot.IotHub**
- **diagrams.azure.iot.Maps**
- **diagrams.azure.iot.Sphere**
- **diagrams.azure.iot.TimeSeriesInsightsEnvironments**
- **diagrams.azure.iot.TimeSeriesInsightsEventsSources**
- **diagrams.azure.iot.Windows10IotCoreServices**
- **diagrams.azure.identity.AccessReview**
- **diagrams.azure.identity.ActiveDirectoryConnectHealth**
- **diagrams.azure.identity.ActiveDirectory**
- **diagrams.azure.identity.ADB2C**
- **diagrams.azure.identity.ADDomainServices**
- **diagrams.azure.identity.ADIdentityProtection**
- **diagrams.azure.identity.ADPrivilegedIdentityManagement**
- **diagrams.azure.identity.AppRegistrations**
- **diagrams.azure.identity.ConditionalAccess**
- **diagrams.azure.identity.EnterpriseApplications**
- **diagrams.azure.identity.IdentityGovernance**
- **diagrams.azure.identity.InformationProtection**
- **diagrams.azure.identity.ManagedIdentities**
## azure.integration
@ -123,6 +138,25 @@ Node classes list of azure provider.
- **diagrams.azure.integration.SoftwareAsAService**
- **diagrams.azure.integration.StorsimpleDeviceManagers**
## azure.iot
- **diagrams.azure.iot.DeviceProvisioningServices**
- **diagrams.azure.iot.DigitalTwins**
- **diagrams.azure.iot.IotCentralApplications**
- **diagrams.azure.iot.IotHubSecurity**
- **diagrams.azure.iot.IotHub**
- **diagrams.azure.iot.Maps**
- **diagrams.azure.iot.Sphere**
- **diagrams.azure.iot.TimeSeriesInsightsEnvironments**
- **diagrams.azure.iot.TimeSeriesInsightsEventsSources**
- **diagrams.azure.iot.Windows10IotCoreServices**
## azure.migration
- **diagrams.azure.migration.DatabaseMigrationServices**
- **diagrams.azure.migration.MigrationProjects**
- **diagrams.azure.migration.RecoveryServicesVaults**
## azure.ml
- **diagrams.azure.ml.BatchAI**
@ -134,83 +168,11 @@ Node classes list of azure provider.
- **diagrams.azure.ml.MachineLearningStudioWebServices**
- **diagrams.azure.ml.MachineLearningStudioWorkspaces**
## azure.migration
- **diagrams.azure.migration.DatabaseMigrationServices**
- **diagrams.azure.migration.MigrationProjects**
- **diagrams.azure.migration.RecoveryServicesVaults**
## azure.analytics
- **diagrams.azure.analytics.AnalysisServices**
- **diagrams.azure.analytics.DataExplorerClusters**
- **diagrams.azure.analytics.DataFactories**
- **diagrams.azure.analytics.DataLakeAnalytics**
- **diagrams.azure.analytics.DataLakeStoreGen1**
- **diagrams.azure.analytics.Databricks**
- **diagrams.azure.analytics.EventHubClusters**
- **diagrams.azure.analytics.EventHubs**
- **diagrams.azure.analytics.Hdinsightclusters**
- **diagrams.azure.analytics.LogAnalyticsWorkspaces**
- **diagrams.azure.analytics.StreamAnalyticsJobs**
## azure.security
- **diagrams.azure.security.KeyVaults**
- **diagrams.azure.security.SecurityCenter**
- **diagrams.azure.security.Sentinel**
## 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.compute
## azure.mobile
- **diagrams.azure.compute.AvailabilitySets**
- **diagrams.azure.compute.BatchAccounts**
- **diagrams.azure.compute.CitrixVirtualDesktopsEssentials**
- **diagrams.azure.compute.CloudServicesClassic**
- **diagrams.azure.compute.CloudServices**
- **diagrams.azure.compute.CloudsimpleVirtualMachines**
- **diagrams.azure.compute.ContainerInstances**
- **diagrams.azure.compute.ContainerRegistries**, **ACR** (alias)
- **diagrams.azure.compute.DiskSnapshots**
- **diagrams.azure.compute.Disks**
- **diagrams.azure.compute.FunctionApps**
- **diagrams.azure.compute.KubernetesServices**, **AKS** (alias)
- **diagrams.azure.compute.MeshApplications**
- **diagrams.azure.compute.SAPHANAOnAzure**
- **diagrams.azure.compute.ServiceFabricClusters**
- **diagrams.azure.compute.VMClassic**
- **diagrams.azure.compute.VMImages**
- **diagrams.azure.compute.VMLinux**
- **diagrams.azure.compute.VMWindows**
- **diagrams.azure.compute.VM**
- **diagrams.azure.mobile.AppServiceMobile**
- **diagrams.azure.mobile.MobileEngagement**
- **diagrams.azure.mobile.NotificationHubs**
## azure.network
@ -240,3 +202,41 @@ Node classes list of azure provider.
- **diagrams.azure.network.VirtualNetworkGateways**
- **diagrams.azure.network.VirtualNetworks**
- **diagrams.azure.network.VirtualWans**
## azure.security
- **diagrams.azure.security.KeyVaults**
- **diagrams.azure.security.SecurityCenter**
- **diagrams.azure.security.Sentinel**
## azure.storage
- **diagrams.azure.storage.ArchiveStorage**
- **diagrams.azure.storage.Azurefxtedgefiler**
- **diagrams.azure.storage.BlobStorage**
- **diagrams.azure.storage.DataBoxEdgeDataBoxGateway**
- **diagrams.azure.storage.DataBox**
- **diagrams.azure.storage.DataLakeStorage**
- **diagrams.azure.storage.GeneralStorage**
- **diagrams.azure.storage.NetappFiles**
- **diagrams.azure.storage.QueuesStorage**
- **diagrams.azure.storage.StorageAccountsClassic**
- **diagrams.azure.storage.StorageAccounts**
- **diagrams.azure.storage.StorageExplorer**
- **diagrams.azure.storage.StorageSyncServices**
- **diagrams.azure.storage.StorsimpleDataManagers**
- **diagrams.azure.storage.StorsimpleDeviceManagers**
- **diagrams.azure.storage.TableStorage**
## azure.web
- **diagrams.azure.web.APIConnections**
- **diagrams.azure.web.AppServiceCertificates**
- **diagrams.azure.web.AppServiceDomains**
- **diagrams.azure.web.AppServiceEnvironments**
- **diagrams.azure.web.AppServicePlans**
- **diagrams.azure.web.AppServices**
- **diagrams.azure.web.MediaServices**
- **diagrams.azure.web.NotificationHubNamespaces**
- **diagrams.azure.web.Search**
- **diagrams.azure.web.Signalr**

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

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

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