Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 71 additions & 1 deletion config.py
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you put the provider at the bottom of the lists/dicts, not in the middle.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
DIR_TEMPLATE = "templates"

PROVIDERS = (
"base", "onprem", "aws", "azure", "digitalocean", "gcp", "ibm", "firebase", "k8s", "alibabacloud", "oci",
"base", "onprem", "aws", "azure", "digitalocean", "gcp", "ibm", "firebase", "k8s", "alibabacloud", "huaweicloud", "oci",
"programming", "saas", "elastic", "generic", "openstack", "outscale")

#########################
Expand All @@ -36,6 +36,7 @@
"ibm": (),
"k8s": (),
"alibabacloud": (),
"huaweicloud": (),
"oci": ("OCI-icon-",),
"programming": (),
"saas": (),
Expand All @@ -59,6 +60,7 @@

UPPER_WORDS = {
"aws": ("aws", "api", "ebs", "ec2", "efs", "emr", "rds", "ml", "mq", "nat", "vpc", "waf", "sdk"),
"huaweicloud": ('ais', 'cdm', 'cs', 'dgc', 'dli', 'dws', 'ges', 'mls', 'mrs', 'nlp', 'cae', 'cse', 'dms', 'ecpc', 'smn', 'bcs', 'im', 'msgsms', 'aos', 'cce', 'cci', 'swr', 'ugo', 'cdn', 'iec', 'ief', 'ies', 'wsa', 'gsl', 'cas', 'ccs', 'ces', 'crs', 'cts', 'hcus', 'iam', 'icms', 'rts', 'tms', 'aad', 'aag', 'ars', 'dbss', 'hids', 'hss', 'hvd', 'hwaf', 'kms', 'pts', 'sas', 'sca', 'scs', 'ssa', 'waf', 'wtp', 'cdn', 'csbs', 'des', 'dess', 'dss', 'evs', 'obs', 'sfs', 'vbs', 'live', 'mpc', 'rtc', 'vis', 'vod'),
"azure": ("ad", "b2c", "ai", "api", "cdn", "ddos", "dns", "fxt", "hana", "hd", "id", "sap", "sql", "vm", "vpn", "vpc"),
"gcp": ("gcp", "ai", "api", "cdn", "dns", "gke", "gpu", "iap", "ml", "nat", "os", "sdk", "sql", "tpu", "vpn"),
"firebase": ("ab", "fcm", "ml"),
Expand All @@ -82,6 +84,9 @@
"alibabacloud": {
"alibabacloud": "AlibabaCloud"
},
"hauweicloud": {
"hauweicloud": "HuaweiCloud"
},
"aws": {
"cloudfront": "CloudFront"
},
Expand Down Expand Up @@ -390,6 +395,71 @@
"ObjectTableStore": "OTS",
}
},
"huaweicloud": {
"compute": {
"AutoScaling": "AS",
"BareMetalServer": "BMS",
"CloudContainerEngine": "CCE",
"DedicatedHost": "DeH",
"DedicatedCloud": "DeC",
"ElasticComputeService": "ECS",
"ImageService": "IMS",
},
"database": {
"DataAdminService": "DAS",
"RelationalDatabaseService": "RDS",
"DataReplicationService": "DRS",
"DistributedDatabaseMiddleware": "DDM",
},
"network": {
"ElasticLoadBalance": "ELB",
"VirtualPrivateCloud": "VPC",
"DomainNameService": "DNS",
"DirectConnect": "DC",
"NatGateway": "NAT",
"ElasticIp": "EIP",
"VirtualPrivateNetwork": "VPC",
},
"security": {
},
"storage": {
"OBS": "ObjectStorageService",
"CDN": "ContentDeliveryNetwork",
"EVS": "ElasticVolumeService",
"SFS": "StorageFileSystem",
"CSBS": "CloudServerBackupService",
"DES": "DataExpressService",
"DESS": "DedicatedEnterpriseStorageService",
"VBS": "VolumeBackupService",
"DSS": "DedicatedStorageService",
},
"container": {
"AOS": "ApplicationOrchestrationService",
"CCE": "CloudContainerEngine",
"CCI": "CloudContainerInstance",
"SWR": "SoftwareRepository",
},
"ai_analytics" : {
"ModelArts": "MA",
"MRS": "MapReduceService",
"AIS": "ArificalIntelligenceService",
"CS": "CloudStreamingService",
"DLI": "DataLakeInsight",
"CDM": "CloudDataMigrationService",
"NLP": "NaturalLanguageProcessingService",
"MLS": "MachineLearningService",
"DWS": "DataWarehouseService",
},
"blockchain": {
"BCS": "BlockChainService"
},
"edge": {
"IEF": "IntelligentEdgeFabric",
"IES": "IntelligentEdgeSite",
"WSA": "WholeSiteAcceleration",
"IEC": "IntelligentEdgeCloud",
},
},
"digitalocean": {},
"oci": {
"compute": {
Expand Down
12 changes: 12 additions & 0 deletions diagrams/huaweicloud/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
"""
Huaweicloud provides a set of services for Huawei Cloud provider.
"""

from diagrams import Node


class _Huaweicloud(Node):
_provider = "huaweicloud"
_icon_dir = "resources/huaweicloud"

fontcolor = "#ffffff"
113 changes: 113 additions & 0 deletions diagrams/huaweicloud/ai_analytics.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Huaweicloud


class _Ai_Analytics(_Huaweicloud):
_type = "ai_analytics"
_icon_dir = "resources/huaweicloud/ai_analytics"


class AIS(_Ai_Analytics):
_icon = "ais.png"


class Campus(_Ai_Analytics):
_icon = "campus.png"


class CDM(_Ai_Analytics):
_icon = "cdm.png"


class CloudTable(_Ai_Analytics):
_icon = "cloud-table.png"


class CS(_Ai_Analytics):
_icon = "cs.png"


class DataAccess(_Ai_Analytics):
_icon = "data-access.png"


class DataArts(_Ai_Analytics):
_icon = "data-arts.png"


class DGC(_Ai_Analytics):
_icon = "dgc.png"


class DLI(_Ai_Analytics):
_icon = "dli.png"


class DWS(_Ai_Analytics):
_icon = "dws.png"


class GES(_Ai_Analytics):
_icon = "ges.png"


class Hilens(_Ai_Analytics):
_icon = "hilens.png"


class Image(_Ai_Analytics):
_icon = "image.png"


class Imagetagging(_Ai_Analytics):
_icon = "imagetagging.png"


class Industriai(_Ai_Analytics):
_icon = "industriai.png"


class Log(_Ai_Analytics):
_icon = "log.png"


class Logistics(_Ai_Analytics):
_icon = "logistics.png"


class MLS(_Ai_Analytics):
_icon = "mls.png"


class ModelArts(_Ai_Analytics):
_icon = "model-arts.png"


class MRS(_Ai_Analytics):
_icon = "mrs.png"


class NLP(_Ai_Analytics):
_icon = "nlp.png"


class Roc(_Ai_Analytics):
_icon = "roc.png"


class Traffic(_Ai_Analytics):
_icon = "traffic.png"


# Aliases

MA = ModelArts
MapReduceService = MRS
ArificalIntelligenceService = AIS
CloudStreamingService = CS
DataLakeInsight = DLI
CloudDataMigrationService = CDM
NaturalLanguageProcessingService = NLP
MachineLearningService = MLS
DataWarehouseService = DWS
43 changes: 43 additions & 0 deletions diagrams/huaweicloud/application.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Huaweicloud


class _Application(_Huaweicloud):
_type = "application"
_icon_dir = "resources/huaweicloud/application"


class CAE(_Application):
_icon = "cae.png"


class CSE(_Application):
_icon = "cse.png"


class DMS(_Application):
_icon = "dms.png"


class ECPC(_Application):
_icon = "ecpc.png"


class FunctionStage(_Application):
_icon = "function-stage.png"


class Memcached(_Application):
_icon = "memcached.png"


class ServiceStage(_Application):
_icon = "service-stage.png"


class SMN(_Application):
_icon = "smn.png"


# Aliases
17 changes: 17 additions & 0 deletions diagrams/huaweicloud/blockchain.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Huaweicloud


class _Blockchain(_Huaweicloud):
_type = "blockchain"
_icon_dir = "resources/huaweicloud/blockchain"


class BCS(_Blockchain):
_icon = "bcs.png"


# Aliases

BlockChainService = BCS
31 changes: 31 additions & 0 deletions diagrams/huaweicloud/communication.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Huaweicloud


class _Communication(_Huaweicloud):
_type = "communication"
_icon_dir = "resources/huaweicloud/communication"


class CloudIpcc(_Communication):
_icon = "cloud-ipcc.png"


class CloudPbx(_Communication):
_icon = "cloud-pbx.png"


class IM(_Communication):
_icon = "im.png"


class MSGSMS(_Communication):
_icon = "msgsms.png"


class VoiceCall(_Communication):
_icon = "voice-call.png"


# Aliases
47 changes: 47 additions & 0 deletions diagrams/huaweicloud/compute.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# This module is automatically generated by autogen.sh. DO NOT EDIT.

from . import _Huaweicloud


class _Compute(_Huaweicloud):
_type = "compute"
_icon_dir = "resources/huaweicloud/compute"


class AutoScaling(_Compute):
_icon = "auto-scaling.png"


class BareMetalServer(_Compute):
_icon = "bare-metal-server.png"


class CloudContainerEngine(_Compute):
_icon = "cloud-container-engine.png"


class DedicatedCloud(_Compute):
_icon = "dedicated-cloud.png"


class DedicatedHost(_Compute):
_icon = "dedicated-host.png"


class ElasticComputeService(_Compute):
_icon = "elastic-compute-service.png"


class ImageService(_Compute):
_icon = "image-service.png"


# Aliases

AS = AutoScaling
BMS = BareMetalServer
CCE = CloudContainerEngine
DeH = DedicatedHost
DeC = DedicatedCloud
ECS = ElasticComputeService
IMS = ImageService
Loading