diff --git a/autogen.sh b/autogen.sh index ff9f226..048ea87 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,7 +2,7 @@ app_root_dir="diagrams" # NOTE: azure icon set is not latest version -providers=("aws" "azure" "gcp" "k8s") +providers=("aws" "azure" "gcp" "k8s" "alibabacloud") if ! [ -x "$(command -v round)" ]; then echo 'round is not installed' diff --git a/config.py b/config.py index 67f56a0..5474442 100644 --- a/config.py +++ b/config.py @@ -11,7 +11,7 @@ DIR_APP_ROOT = "diagrams" DIR_RESOURCE = "resources" DIR_TEMPLATE = "templates" -PROVIDERS = ("base", "aws", "azure", "gcp", "k8s") +PROVIDERS = ("base", "aws", "azure", "gcp", "k8s", "alibabacloud") ######################### # Resource Processing # @@ -27,6 +27,7 @@ FILE_PREFIXES = { "azure": ("azure-",), "gcp": ("cloud-",), "k8s": (), + "alibabacloud": (), } ######################### @@ -48,7 +49,13 @@ UPPER_WORDS = { "k8s": ( "api", "cm", "ccm", "crb", "crd", "ds", "etcd", "hpa", "k8s", "ns", "psp", "pv", "pvc", "rb", "rs", "sa", "sc", "sts", "svc", - ), + ) +} + +TITLE_WORDS = { + "alibabacloud": { + "alibabacloud": "AlibabaCloud" + } } # TODO: check if the classname exists @@ -198,5 +205,56 @@ ALIASES = { "SC": "StorageClass", "Vol": "Volume", }, + }, + "alibabacloud": { + "application": { + "LogService": "SLS", + "MessageNotificationService": "MNS", + "PerformanceTestingService": "PTS", + "SmartConversationAnalysis": "SCA", + }, + "compute": { + "AutoScaling": "ESS", + "ElasticComputeService": "ECS", + "ElasticContainerInstance": "ECI", + "ElasticHighPerformanceComputing": "EHPC", + "FunctionCompute": "FC", + "OperationOrchestrationService": "OOS", + "ResourceOrchestrationService": "ROS", + "ServerLoadBalancer": "SLB", + "ServerlessAppEngine": "SAE", + "SimpleApplicationServer": "SAS", + "WebAppService": "WAS", + }, + "database": { + "DataManagementService": "DMS", + "DataTransmissionService": "DTS", + "DatabaseBackupService": "DBS", + "DisributeRelationalDatabaseService": "DRDS", + "GraphDatabaseService": "GDS", + "RelationalDatabaseService": "RDS", + }, + "network": { + "CloudEnterpriseNetwork": "CEN", + "ElasticIpAddress": "EIP", + "ServerLoadBalancer": "SLB", + "VirtualPrivateCloud": "VPC", + }, + "security": { + "AntiBotService": "ABS", + "AntifraudService": "AS", + "CloudFirewall": "CFW", + "ContentModeration": "CM", + "DataEncryptionService": "DES", + "WebApplicationFirewall": "WAF", + }, + "storage": { + "FileStorageHdfs": "HDFS", + "FileStorageNas": "NAS", + "HybridBackupRecovery": "HBR", + "HybridCloudDisasterRecovery": "HDR", + "ObjectStorageService": "OSS", + "ObjectTableStore": "OTS", + } } } diff --git a/diagrams/alibabacloud/__init__.py b/diagrams/alibabacloud/__init__.py new file mode 100644 index 0000000..a64c200 --- /dev/null +++ b/diagrams/alibabacloud/__init__.py @@ -0,0 +1,12 @@ +""" +AlibabaCloud provides a set of services for Alibaba Cloud provider. +""" + +from diagrams import Node + + +class _AlibabaCloud(Node): + _provider = "alibabacloud" + _icon_dir = "resources/alibabacloud" + + fontcolor = "#ffffff" diff --git a/diagrams/alibabacloud/analytics.py b/diagrams/alibabacloud/analytics.py new file mode 100644 index 0000000..b224af2 --- /dev/null +++ b/diagrams/alibabacloud/analytics.py @@ -0,0 +1,31 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Analytics(_AlibabaCloud): + _type = "analytics" + _icon_dir = "resources/alibabacloud/analytics" + + +class AnalyticDb(_Analytics): + _icon = "analytic-db.png" + + +class ClickHouse(_Analytics): + _icon = "click-house.png" + + +class DataLakeAnalytics(_Analytics): + _icon = "data-lake-analytics.png" + + +class ElaticMapReduce(_Analytics): + _icon = "elatic-map-reduce.png" + + +class OpenSearch(_Analytics): + _icon = "open-search.png" + + +# Aliases diff --git a/diagrams/alibabacloud/application.py b/diagrams/alibabacloud/application.py new file mode 100644 index 0000000..8f9da8e --- /dev/null +++ b/diagrams/alibabacloud/application.py @@ -0,0 +1,72 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Application(_AlibabaCloud): + _type = "application" + _icon_dir = "resources/alibabacloud/application" + + +class ApiGateway(_Application): + _icon = "api-gateway.png" + + +class BeeBot(_Application): + _icon = "bee-bot.png" + + +class BlockchainAsAService(_Application): + _icon = "blockchain-as-a-service.png" + + +class CloudCallCenter(_Application): + _icon = "cloud-call-center.png" + + +class CodePipeline(_Application): + _icon = "code-pipeline.png" + + +class DirectMail(_Application): + _icon = "direct-mail.png" + + +class LogService(_Application): + _icon = "log-service.png" + + +class MessageNotificationService(_Application): + _icon = "message-notification-service.png" + + +class NodeJsPerformancePlatform(_Application): + _icon = "node-js-performance-platform.png" + + +class OpenSearch(_Application): + _icon = "open-search.png" + + +class PerformanceTestingService(_Application): + _icon = "performance-testing-service.png" + + +class RdCloud(_Application): + _icon = "rd-cloud.png" + + +class SmartConversationAnalysis(_Application): + _icon = "smart-conversation-analysis.png" + + +class Yida(_Application): + _icon = "yida.png" + + +# Aliases + +SLS = LogService +MNS = MessageNotificationService +PTS = PerformanceTestingService +SCA = SmartConversationAnalysis diff --git a/diagrams/alibabacloud/communication.py b/diagrams/alibabacloud/communication.py new file mode 100644 index 0000000..2906fb1 --- /dev/null +++ b/diagrams/alibabacloud/communication.py @@ -0,0 +1,19 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Communication(_AlibabaCloud): + _type = "communication" + _icon_dir = "resources/alibabacloud/communication" + + +class DirectMail(_Communication): + _icon = "direct-mail.png" + + +class MobilePush(_Communication): + _icon = "mobile-push.png" + + +# Aliases diff --git a/diagrams/alibabacloud/compute.py b/diagrams/alibabacloud/compute.py new file mode 100644 index 0000000..4ac5700 --- /dev/null +++ b/diagrams/alibabacloud/compute.py @@ -0,0 +1,83 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Compute(_AlibabaCloud): + _type = "compute" + _icon_dir = "resources/alibabacloud/compute" + + +class AutoScaling(_Compute): + _icon = "auto-scaling.png" + + +class BatchCompute(_Compute): + _icon = "batch-compute.png" + + +class ContainerRegistry(_Compute): + _icon = "container-registry.png" + + +class ContainerService(_Compute): + _icon = "container-service.png" + + +class ElasticComputeService(_Compute): + _icon = "elastic-compute-service.png" + + +class ElasticContainerInstance(_Compute): + _icon = "elastic-container-instance.png" + + +class ElasticHighPerformanceComputing(_Compute): + _icon = "elastic-high-performance-computing.png" + + +class ElasticSearch(_Compute): + _icon = "elastic-search.png" + + +class FunctionCompute(_Compute): + _icon = "function-compute.png" + + +class OperationOrchestrationService(_Compute): + _icon = "operation-orchestration-service.png" + + +class ResourceOrchestrationService(_Compute): + _icon = "resource-orchestration-service.png" + + +class ServerLoadBalancer(_Compute): + _icon = "server-load-balancer.png" + + +class ServerlessAppEngine(_Compute): + _icon = "serverless-app-engine.png" + + +class SimpleApplicationServer(_Compute): + _icon = "simple-application-server.png" + + +class WebAppService(_Compute): + _icon = "web-app-service.png" + + +# Aliases + +ESS = AutoScaling +ECS = ElasticComputeService +ECI = ElasticContainerInstance +EHPC = ElasticHighPerformanceComputing +FC = FunctionCompute +OOS = OperationOrchestrationService +ROS = ResourceOrchestrationService +SLB = ServerLoadBalancer +SAE = ServerlessAppEngine +SAS = SimpleApplicationServer +WAS = WebAppService diff --git a/diagrams/alibabacloud/database.py b/diagrams/alibabacloud/database.py new file mode 100644 index 0000000..25eaf40 --- /dev/null +++ b/diagrams/alibabacloud/database.py @@ -0,0 +1,86 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Database(_AlibabaCloud): + _type = "database" + _icon_dir = "resources/alibabacloud/database" + + +class ApsaradbCassandra(_Database): + _icon = "apsaradb-cassandra.png" + + +class ApsaradbHbase(_Database): + _icon = "apsaradb-hbase.png" + + +class ApsaradbMemcache(_Database): + _icon = "apsaradb-memcache.png" + + +class ApsaradbMongodb(_Database): + _icon = "apsaradb-mongodb.png" + + +class ApsaradbOceanbase(_Database): + _icon = "apsaradb-oceanbase.png" + + +class ApsaradbPolardb(_Database): + _icon = "apsaradb-polardb.png" + + +class ApsaradbPostgresql(_Database): + _icon = "apsaradb-postgresql.png" + + +class ApsaradbPpas(_Database): + _icon = "apsaradb-ppas.png" + + +class ApsaradbRedis(_Database): + _icon = "apsaradb-redis.png" + + +class ApsaradbSqlserver(_Database): + _icon = "apsaradb-sqlserver.png" + + +class DataManagementService(_Database): + _icon = "data-management-service.png" + + +class DataTransmissionService(_Database): + _icon = "data-transmission-service.png" + + +class DatabaseBackupService(_Database): + _icon = "database-backup-service.png" + + +class DisributeRelationalDatabaseService(_Database): + _icon = "disribute-relational-database-service.png" + + +class GraphDatabaseService(_Database): + _icon = "graph-database-service.png" + + +class HybriddbForMysql(_Database): + _icon = "hybriddb-for-mysql.png" + + +class RelationalDatabaseService(_Database): + _icon = "relational-database-service.png" + + +# Aliases + +DMS = DataManagementService +DTS = DataTransmissionService +DBS = DatabaseBackupService +DRDS = DisributeRelationalDatabaseService +GDS = GraphDatabaseService +RDS = RelationalDatabaseService diff --git a/diagrams/alibabacloud/iot.py b/diagrams/alibabacloud/iot.py new file mode 100644 index 0000000..3df32fa --- /dev/null +++ b/diagrams/alibabacloud/iot.py @@ -0,0 +1,27 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Iot(_AlibabaCloud): + _type = "iot" + _icon_dir = "resources/alibabacloud/iot" + + +class IotInternetDeviceId(_Iot): + _icon = "iot-internet-device-id.png" + + +class IotLinkWan(_Iot): + _icon = "iot-link-wan.png" + + +class IotMobileConnectionPackage(_Iot): + _icon = "iot-mobile-connection-package.png" + + +class IotPlatform(_Iot): + _icon = "iot-platform.png" + + +# Aliases diff --git a/diagrams/alibabacloud/network.py b/diagrams/alibabacloud/network.py new file mode 100644 index 0000000..f634d11 --- /dev/null +++ b/diagrams/alibabacloud/network.py @@ -0,0 +1,52 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Network(_AlibabaCloud): + _type = "network" + _icon_dir = "resources/alibabacloud/network" + + +class Cdn(_Network): + _icon = "cdn.png" + + +class CloudEnterpriseNetwork(_Network): + _icon = "cloud-enterprise-network.png" + + +class ElasticIpAddress(_Network): + _icon = "elastic-ip-address.png" + + +class ExpressConnect(_Network): + _icon = "express-connect.png" + + +class NatGateway(_Network): + _icon = "nat-gateway.png" + + +class ServerLoadBalancer(_Network): + _icon = "server-load-balancer.png" + + +class SmartAccessGateway(_Network): + _icon = "smart-access-gateway.png" + + +class VirtualPrivateCloud(_Network): + _icon = "virtual-private-cloud.png" + + +class VpnGateway(_Network): + _icon = "vpn-gateway.png" + + +# Aliases + +CEN = CloudEnterpriseNetwork +EIP = ElasticIpAddress +SLB = ServerLoadBalancer +VPC = VirtualPrivateCloud diff --git a/diagrams/alibabacloud/security.py b/diagrams/alibabacloud/security.py new file mode 100644 index 0000000..e104ef4 --- /dev/null +++ b/diagrams/alibabacloud/security.py @@ -0,0 +1,90 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Security(_AlibabaCloud): + _type = "security" + _icon_dir = "resources/alibabacloud/security" + + +class AntiBotService(_Security): + _icon = "anti-bot-service.png" + + +class AntiDdosBasic(_Security): + _icon = "anti-ddos-basic.png" + + +class AntiDdosPro(_Security): + _icon = "anti-ddos-pro.png" + + +class AntifraudService(_Security): + _icon = "antifraud-service.png" + + +class BastionHost(_Security): + _icon = "bastion-host.png" + + +class CloudFirewall(_Security): + _icon = "cloud-firewall.png" + + +class CloudSecurityScanner(_Security): + _icon = "cloud-security-scanner.png" + + +class ContentModeration(_Security): + _icon = "content-moderation.png" + + +class CrowdsourcedSecurityTesting(_Security): + _icon = "crowdsourced-security-testing.png" + + +class DataEncryptionService(_Security): + _icon = "data-encryption-service.png" + + +class DbAudit(_Security): + _icon = "db-audit.png" + + +class GameShield(_Security): + _icon = "game-shield.png" + + +class IdVerification(_Security): + _icon = "id-verification.png" + + +class ManagedSecurityService(_Security): + _icon = "managed-security-service.png" + + +class SecurityCenter(_Security): + _icon = "security-center.png" + + +class ServerGuard(_Security): + _icon = "server-guard.png" + + +class SslCertificates(_Security): + _icon = "ssl-certificates.png" + + +class WebApplicationFirewall(_Security): + _icon = "web-application-firewall.png" + + +# Aliases + +ABS = AntiBotService +AS = AntifraudService +CFW = CloudFirewall +CM = ContentModeration +DES = DataEncryptionService +WAF = WebApplicationFirewall diff --git a/diagrams/alibabacloud/storage.py b/diagrams/alibabacloud/storage.py new file mode 100644 index 0000000..e85c56c --- /dev/null +++ b/diagrams/alibabacloud/storage.py @@ -0,0 +1,50 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Storage(_AlibabaCloud): + _type = "storage" + _icon_dir = "resources/alibabacloud/storage" + + +class CloudStorageGateway(_Storage): + _icon = "cloud-storage-gateway.png" + + +class FileStorageHdfs(_Storage): + _icon = "file-storage-hdfs.png" + + +class FileStorageNas(_Storage): + _icon = "file-storage-nas.png" + + +class HybridBackupRecovery(_Storage): + _icon = "hybrid-backup-recovery.png" + + +class HybridCloudDisasterRecovery(_Storage): + _icon = "hybrid-cloud-disaster-recovery.png" + + +class Imm(_Storage): + _icon = "imm.png" + + +class ObjectStorageService(_Storage): + _icon = "object-storage-service.png" + + +class ObjectTableStore(_Storage): + _icon = "object-table-store.png" + + +# Aliases + +HDFS = FileStorageHdfs +NAS = FileStorageNas +HBR = HybridBackupRecovery +HDR = HybridCloudDisasterRecovery +OSS = ObjectStorageService +OTS = ObjectTableStore diff --git a/diagrams/alibabacloud/web.py b/diagrams/alibabacloud/web.py new file mode 100644 index 0000000..490bf90 --- /dev/null +++ b/diagrams/alibabacloud/web.py @@ -0,0 +1,19 @@ +# This module is automatically generated by autogen.sh. DO NOT EDIT. + +from . import _AlibabaCloud + + +class _Web(_AlibabaCloud): + _type = "web" + _icon_dir = "resources/alibabacloud/web" + + +class Dns(_Web): + _icon = "dns.png" + + +class Domain(_Web): + _icon = "domain.png" + + +# Aliases diff --git a/docs/guides/node.md b/docs/guides/node.md index e9fb8b5..d096765 100644 --- a/docs/guides/node.md +++ b/docs/guides/node.md @@ -35,6 +35,11 @@ from diagrams.azure.compute import FunctionApps from diagrams.azure.storage import BlobStorage ... +# alibaba cloud resources +from diagrams.alibabacloud.compute import ECS +from diagrams.alibabacloud.storage import ObjectTableStore +... + # gcp resources from diagrams.gcp.compute import AppEngine, GKE from diagrams.gcp.ml import AutoML diff --git a/docs/nodes/alibabacloud.md b/docs/nodes/alibabacloud.md new file mode 100644 index 0000000..eb62f5d --- /dev/null +++ b/docs/nodes/alibabacloud.md @@ -0,0 +1,130 @@ +--- +id: alibabacloud +title: AlibabaCloud +--- + +Node classes list of alibabacloud provider. + +## alibabacloud.database + +- **diagrams.alibabacloud.database.ApsaradbCassandra** +- **diagrams.alibabacloud.database.ApsaradbHbase** +- **diagrams.alibabacloud.database.ApsaradbMemcache** +- **diagrams.alibabacloud.database.ApsaradbMongodb** +- **diagrams.alibabacloud.database.ApsaradbOceanbase** +- **diagrams.alibabacloud.database.ApsaradbPolardb** +- **diagrams.alibabacloud.database.ApsaradbPostgresql** +- **diagrams.alibabacloud.database.ApsaradbPpas** +- **diagrams.alibabacloud.database.ApsaradbRedis** +- **diagrams.alibabacloud.database.ApsaradbSqlserver** +- **diagrams.alibabacloud.database.DataManagementService**, **DMS** (alias) +- **diagrams.alibabacloud.database.DataTransmissionService**, **DTS** (alias) +- **diagrams.alibabacloud.database.DatabaseBackupService**, **DBS** (alias) +- **diagrams.alibabacloud.database.DisributeRelationalDatabaseService**, **DRDS** (alias) +- **diagrams.alibabacloud.database.GraphDatabaseService**, **GDS** (alias) +- **diagrams.alibabacloud.database.HybriddbForMysql** +- **diagrams.alibabacloud.database.RelationalDatabaseService**, **RDS** (alias) + +## alibabacloud.security + +- **diagrams.alibabacloud.security.AntiBotService**, **ABS** (alias) +- **diagrams.alibabacloud.security.AntiDdosBasic** +- **diagrams.alibabacloud.security.AntiDdosPro** +- **diagrams.alibabacloud.security.AntifraudService**, **AS** (alias) +- **diagrams.alibabacloud.security.BastionHost** +- **diagrams.alibabacloud.security.CloudFirewall**, **CFW** (alias) +- **diagrams.alibabacloud.security.CloudSecurityScanner** +- **diagrams.alibabacloud.security.ContentModeration**, **CM** (alias) +- **diagrams.alibabacloud.security.CrowdsourcedSecurityTesting** +- **diagrams.alibabacloud.security.DataEncryptionService**, **DES** (alias) +- **diagrams.alibabacloud.security.DbAudit** +- **diagrams.alibabacloud.security.GameShield** +- **diagrams.alibabacloud.security.IdVerification** +- **diagrams.alibabacloud.security.ManagedSecurityService** +- **diagrams.alibabacloud.security.SecurityCenter** +- **diagrams.alibabacloud.security.ServerGuard** +- **diagrams.alibabacloud.security.SslCertificates** +- **diagrams.alibabacloud.security.WebApplicationFirewall**, **WAF** (alias) + +## alibabacloud.web + +- **diagrams.alibabacloud.web.Dns** +- **diagrams.alibabacloud.web.Domain** + +## alibabacloud.network + +- **diagrams.alibabacloud.network.Cdn** +- **diagrams.alibabacloud.network.CloudEnterpriseNetwork**, **CEN** (alias) +- **diagrams.alibabacloud.network.ElasticIpAddress**, **EIP** (alias) +- **diagrams.alibabacloud.network.ExpressConnect** +- **diagrams.alibabacloud.network.NatGateway** +- **diagrams.alibabacloud.network.ServerLoadBalancer**, **SLB** (alias) +- **diagrams.alibabacloud.network.SmartAccessGateway** +- **diagrams.alibabacloud.network.VirtualPrivateCloud**, **VPC** (alias) +- **diagrams.alibabacloud.network.VpnGateway** + +## alibabacloud.storage + +- **diagrams.alibabacloud.storage.CloudStorageGateway** +- **diagrams.alibabacloud.storage.FileStorageHdfs**, **HDFS** (alias) +- **diagrams.alibabacloud.storage.FileStorageNas**, **NAS** (alias) +- **diagrams.alibabacloud.storage.HybridBackupRecovery**, **HBR** (alias) +- **diagrams.alibabacloud.storage.HybridCloudDisasterRecovery**, **HDR** (alias) +- **diagrams.alibabacloud.storage.Imm** +- **diagrams.alibabacloud.storage.ObjectStorageService**, **OSS** (alias) +- **diagrams.alibabacloud.storage.ObjectTableStore**, **OTS** (alias) + +## alibabacloud.iot + +- **diagrams.alibabacloud.iot.IotInternetDeviceId** +- **diagrams.alibabacloud.iot.IotLinkWan** +- **diagrams.alibabacloud.iot.IotMobileConnectionPackage** +- **diagrams.alibabacloud.iot.IotPlatform** + +## alibabacloud.compute + +- **diagrams.alibabacloud.compute.AutoScaling**, **ESS** (alias) +- **diagrams.alibabacloud.compute.BatchCompute** +- **diagrams.alibabacloud.compute.ContainerRegistry** +- **diagrams.alibabacloud.compute.ContainerService** +- **diagrams.alibabacloud.compute.ElasticComputeService**, **ECS** (alias) +- **diagrams.alibabacloud.compute.ElasticContainerInstance**, **ECI** (alias) +- **diagrams.alibabacloud.compute.ElasticHighPerformanceComputing**, **EHPC** (alias) +- **diagrams.alibabacloud.compute.ElasticSearch** +- **diagrams.alibabacloud.compute.FunctionCompute**, **FC** (alias) +- **diagrams.alibabacloud.compute.OperationOrchestrationService**, **OOS** (alias) +- **diagrams.alibabacloud.compute.ResourceOrchestrationService**, **ROS** (alias) +- **diagrams.alibabacloud.compute.ServerLoadBalancer**, **SLB** (alias) +- **diagrams.alibabacloud.compute.ServerlessAppEngine**, **SAE** (alias) +- **diagrams.alibabacloud.compute.SimpleApplicationServer**, **SAS** (alias) +- **diagrams.alibabacloud.compute.WebAppService**, **WAS** (alias) + +## alibabacloud.application + +- **diagrams.alibabacloud.application.ApiGateway** +- **diagrams.alibabacloud.application.BeeBot** +- **diagrams.alibabacloud.application.BlockchainAsAService** +- **diagrams.alibabacloud.application.CloudCallCenter** +- **diagrams.alibabacloud.application.CodePipeline** +- **diagrams.alibabacloud.application.DirectMail** +- **diagrams.alibabacloud.application.LogService**, **SLS** (alias) +- **diagrams.alibabacloud.application.MessageNotificationService**, **MNS** (alias) +- **diagrams.alibabacloud.application.NodeJsPerformancePlatform** +- **diagrams.alibabacloud.application.OpenSearch** +- **diagrams.alibabacloud.application.PerformanceTestingService**, **PTS** (alias) +- **diagrams.alibabacloud.application.RdCloud** +- **diagrams.alibabacloud.application.SmartConversationAnalysis**, **SCA** (alias) +- **diagrams.alibabacloud.application.Yida** + +## alibabacloud.communication + +- **diagrams.alibabacloud.communication.DirectMail** +- **diagrams.alibabacloud.communication.MobilePush** + +## alibabacloud.analytics + +- **diagrams.alibabacloud.analytics.AnalyticDb** +- **diagrams.alibabacloud.analytics.ClickHouse** +- **diagrams.alibabacloud.analytics.DataLakeAnalytics** +- **diagrams.alibabacloud.analytics.ElaticMapReduce** +- **diagrams.alibabacloud.analytics.OpenSearch** diff --git a/resources/alibabacloud/analytics/analytic-db.png b/resources/alibabacloud/analytics/analytic-db.png new file mode 100644 index 0000000..7ef1324 Binary files /dev/null and b/resources/alibabacloud/analytics/analytic-db.png differ diff --git a/resources/alibabacloud/analytics/click-house.png b/resources/alibabacloud/analytics/click-house.png new file mode 100644 index 0000000..a62018f Binary files /dev/null and b/resources/alibabacloud/analytics/click-house.png differ diff --git a/resources/alibabacloud/analytics/data-lake-analytics.png b/resources/alibabacloud/analytics/data-lake-analytics.png new file mode 100644 index 0000000..8e9a3f5 Binary files /dev/null and b/resources/alibabacloud/analytics/data-lake-analytics.png differ diff --git a/resources/alibabacloud/analytics/elatic-map-reduce.png b/resources/alibabacloud/analytics/elatic-map-reduce.png new file mode 100644 index 0000000..dedbaf2 Binary files /dev/null and b/resources/alibabacloud/analytics/elatic-map-reduce.png differ diff --git a/resources/alibabacloud/analytics/open-search.png b/resources/alibabacloud/analytics/open-search.png new file mode 100644 index 0000000..27a4eeb Binary files /dev/null and b/resources/alibabacloud/analytics/open-search.png differ diff --git a/resources/alibabacloud/application/api-gateway.png b/resources/alibabacloud/application/api-gateway.png new file mode 100644 index 0000000..569c57a Binary files /dev/null and b/resources/alibabacloud/application/api-gateway.png differ diff --git a/resources/alibabacloud/application/bee-bot.png b/resources/alibabacloud/application/bee-bot.png new file mode 100644 index 0000000..401a9a5 Binary files /dev/null and b/resources/alibabacloud/application/bee-bot.png differ diff --git a/resources/alibabacloud/application/blockchain-as-a-service.png b/resources/alibabacloud/application/blockchain-as-a-service.png new file mode 100644 index 0000000..05a9e38 Binary files /dev/null and b/resources/alibabacloud/application/blockchain-as-a-service.png differ diff --git a/resources/alibabacloud/application/cloud-call-center.png b/resources/alibabacloud/application/cloud-call-center.png new file mode 100644 index 0000000..14df87b Binary files /dev/null and b/resources/alibabacloud/application/cloud-call-center.png differ diff --git a/resources/alibabacloud/application/code-pipeline.png b/resources/alibabacloud/application/code-pipeline.png new file mode 100644 index 0000000..72aff01 Binary files /dev/null and b/resources/alibabacloud/application/code-pipeline.png differ diff --git a/resources/alibabacloud/application/direct-mail.png b/resources/alibabacloud/application/direct-mail.png new file mode 100644 index 0000000..aa23c1f Binary files /dev/null and b/resources/alibabacloud/application/direct-mail.png differ diff --git a/resources/alibabacloud/application/log-service.png b/resources/alibabacloud/application/log-service.png new file mode 100644 index 0000000..ffc2e60 Binary files /dev/null and b/resources/alibabacloud/application/log-service.png differ diff --git a/resources/alibabacloud/application/message-notification-service.png b/resources/alibabacloud/application/message-notification-service.png new file mode 100644 index 0000000..b0c8e34 Binary files /dev/null and b/resources/alibabacloud/application/message-notification-service.png differ diff --git a/resources/alibabacloud/application/node-js-performance-platform.png b/resources/alibabacloud/application/node-js-performance-platform.png new file mode 100644 index 0000000..2bc7bb3 Binary files /dev/null and b/resources/alibabacloud/application/node-js-performance-platform.png differ diff --git a/resources/alibabacloud/application/open-search.png b/resources/alibabacloud/application/open-search.png new file mode 100644 index 0000000..27a4eeb Binary files /dev/null and b/resources/alibabacloud/application/open-search.png differ diff --git a/resources/alibabacloud/application/performance-testing-service.png b/resources/alibabacloud/application/performance-testing-service.png new file mode 100644 index 0000000..8324f91 Binary files /dev/null and b/resources/alibabacloud/application/performance-testing-service.png differ diff --git a/resources/alibabacloud/application/rd-cloud.png b/resources/alibabacloud/application/rd-cloud.png new file mode 100644 index 0000000..0dc6b99 Binary files /dev/null and b/resources/alibabacloud/application/rd-cloud.png differ diff --git a/resources/alibabacloud/application/smart-conversation-analysis.png b/resources/alibabacloud/application/smart-conversation-analysis.png new file mode 100644 index 0000000..32d63ed Binary files /dev/null and b/resources/alibabacloud/application/smart-conversation-analysis.png differ diff --git a/resources/alibabacloud/application/yida.png b/resources/alibabacloud/application/yida.png new file mode 100644 index 0000000..22c44ed Binary files /dev/null and b/resources/alibabacloud/application/yida.png differ diff --git a/resources/alibabacloud/communication/direct-mail.png b/resources/alibabacloud/communication/direct-mail.png new file mode 100644 index 0000000..aa23c1f Binary files /dev/null and b/resources/alibabacloud/communication/direct-mail.png differ diff --git a/resources/alibabacloud/communication/mobile-push.png b/resources/alibabacloud/communication/mobile-push.png new file mode 100644 index 0000000..0646c7f Binary files /dev/null and b/resources/alibabacloud/communication/mobile-push.png differ diff --git a/resources/alibabacloud/compute/auto-scaling.png b/resources/alibabacloud/compute/auto-scaling.png new file mode 100644 index 0000000..780ff78 Binary files /dev/null and b/resources/alibabacloud/compute/auto-scaling.png differ diff --git a/resources/alibabacloud/compute/batch-compute.png b/resources/alibabacloud/compute/batch-compute.png new file mode 100644 index 0000000..b9936c6 Binary files /dev/null and b/resources/alibabacloud/compute/batch-compute.png differ diff --git a/resources/alibabacloud/compute/container-registry.png b/resources/alibabacloud/compute/container-registry.png new file mode 100644 index 0000000..5d9743f Binary files /dev/null and b/resources/alibabacloud/compute/container-registry.png differ diff --git a/resources/alibabacloud/compute/container-service.png b/resources/alibabacloud/compute/container-service.png new file mode 100644 index 0000000..6935383 Binary files /dev/null and b/resources/alibabacloud/compute/container-service.png differ diff --git a/resources/alibabacloud/compute/elastic-compute-service.png b/resources/alibabacloud/compute/elastic-compute-service.png new file mode 100644 index 0000000..a2d5b4b Binary files /dev/null and b/resources/alibabacloud/compute/elastic-compute-service.png differ diff --git a/resources/alibabacloud/compute/elastic-container-instance.png b/resources/alibabacloud/compute/elastic-container-instance.png new file mode 100644 index 0000000..2fb1fb0 Binary files /dev/null and b/resources/alibabacloud/compute/elastic-container-instance.png differ diff --git a/resources/alibabacloud/compute/elastic-high-performance-computing.png b/resources/alibabacloud/compute/elastic-high-performance-computing.png new file mode 100644 index 0000000..d9cbb90 Binary files /dev/null and b/resources/alibabacloud/compute/elastic-high-performance-computing.png differ diff --git a/resources/alibabacloud/compute/elastic-search.png b/resources/alibabacloud/compute/elastic-search.png new file mode 100644 index 0000000..9e3c4a3 Binary files /dev/null and b/resources/alibabacloud/compute/elastic-search.png differ diff --git a/resources/alibabacloud/compute/function-compute.png b/resources/alibabacloud/compute/function-compute.png new file mode 100644 index 0000000..6c3afa6 Binary files /dev/null and b/resources/alibabacloud/compute/function-compute.png differ diff --git a/resources/alibabacloud/compute/operation-orchestration-service.png b/resources/alibabacloud/compute/operation-orchestration-service.png new file mode 100644 index 0000000..52e828d Binary files /dev/null and b/resources/alibabacloud/compute/operation-orchestration-service.png differ diff --git a/resources/alibabacloud/compute/resource-orchestration-service.png b/resources/alibabacloud/compute/resource-orchestration-service.png new file mode 100644 index 0000000..6742f28 Binary files /dev/null and b/resources/alibabacloud/compute/resource-orchestration-service.png differ diff --git a/resources/alibabacloud/compute/server-load-balancer.png b/resources/alibabacloud/compute/server-load-balancer.png new file mode 100644 index 0000000..33380e3 Binary files /dev/null and b/resources/alibabacloud/compute/server-load-balancer.png differ diff --git a/resources/alibabacloud/compute/serverless-app-engine.png b/resources/alibabacloud/compute/serverless-app-engine.png new file mode 100644 index 0000000..7967e76 Binary files /dev/null and b/resources/alibabacloud/compute/serverless-app-engine.png differ diff --git a/resources/alibabacloud/compute/simple-application-server.png b/resources/alibabacloud/compute/simple-application-server.png new file mode 100644 index 0000000..299a1e9 Binary files /dev/null and b/resources/alibabacloud/compute/simple-application-server.png differ diff --git a/resources/alibabacloud/compute/web-app-service.png b/resources/alibabacloud/compute/web-app-service.png new file mode 100644 index 0000000..5ce154b Binary files /dev/null and b/resources/alibabacloud/compute/web-app-service.png differ diff --git a/resources/alibabacloud/database/apsaradb-cassandra.png b/resources/alibabacloud/database/apsaradb-cassandra.png new file mode 100644 index 0000000..87148da Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-cassandra.png differ diff --git a/resources/alibabacloud/database/apsaradb-hbase.png b/resources/alibabacloud/database/apsaradb-hbase.png new file mode 100644 index 0000000..b6bba8e Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-hbase.png differ diff --git a/resources/alibabacloud/database/apsaradb-memcache.png b/resources/alibabacloud/database/apsaradb-memcache.png new file mode 100644 index 0000000..3d9020a Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-memcache.png differ diff --git a/resources/alibabacloud/database/apsaradb-mongodb.png b/resources/alibabacloud/database/apsaradb-mongodb.png new file mode 100644 index 0000000..899c660 Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-mongodb.png differ diff --git a/resources/alibabacloud/database/apsaradb-oceanbase.png b/resources/alibabacloud/database/apsaradb-oceanbase.png new file mode 100644 index 0000000..a9506df Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-oceanbase.png differ diff --git a/resources/alibabacloud/database/apsaradb-polardb.png b/resources/alibabacloud/database/apsaradb-polardb.png new file mode 100644 index 0000000..3f543b6 Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-polardb.png differ diff --git a/resources/alibabacloud/database/apsaradb-postgresql.png b/resources/alibabacloud/database/apsaradb-postgresql.png new file mode 100644 index 0000000..1d3a829 Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-postgresql.png differ diff --git a/resources/alibabacloud/database/apsaradb-ppas.png b/resources/alibabacloud/database/apsaradb-ppas.png new file mode 100644 index 0000000..e2f7c78 Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-ppas.png differ diff --git a/resources/alibabacloud/database/apsaradb-redis.png b/resources/alibabacloud/database/apsaradb-redis.png new file mode 100644 index 0000000..2953e14 Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-redis.png differ diff --git a/resources/alibabacloud/database/apsaradb-sqlserver.png b/resources/alibabacloud/database/apsaradb-sqlserver.png new file mode 100644 index 0000000..110e018 Binary files /dev/null and b/resources/alibabacloud/database/apsaradb-sqlserver.png differ diff --git a/resources/alibabacloud/database/data-management-service.png b/resources/alibabacloud/database/data-management-service.png new file mode 100644 index 0000000..238d30c Binary files /dev/null and b/resources/alibabacloud/database/data-management-service.png differ diff --git a/resources/alibabacloud/database/data-transmission-service.png b/resources/alibabacloud/database/data-transmission-service.png new file mode 100644 index 0000000..a4f6853 Binary files /dev/null and b/resources/alibabacloud/database/data-transmission-service.png differ diff --git a/resources/alibabacloud/database/database-backup-service.png b/resources/alibabacloud/database/database-backup-service.png new file mode 100644 index 0000000..94ed305 Binary files /dev/null and b/resources/alibabacloud/database/database-backup-service.png differ diff --git a/resources/alibabacloud/database/disribute-relational-database-service.png b/resources/alibabacloud/database/disribute-relational-database-service.png new file mode 100644 index 0000000..55bd711 Binary files /dev/null and b/resources/alibabacloud/database/disribute-relational-database-service.png differ diff --git a/resources/alibabacloud/database/graph-database-service.png b/resources/alibabacloud/database/graph-database-service.png new file mode 100644 index 0000000..d90cbd8 Binary files /dev/null and b/resources/alibabacloud/database/graph-database-service.png differ diff --git a/resources/alibabacloud/database/hybriddb-for-mysql.png b/resources/alibabacloud/database/hybriddb-for-mysql.png new file mode 100644 index 0000000..f0863fe Binary files /dev/null and b/resources/alibabacloud/database/hybriddb-for-mysql.png differ diff --git a/resources/alibabacloud/database/relational-database-service.png b/resources/alibabacloud/database/relational-database-service.png new file mode 100644 index 0000000..3390ba6 Binary files /dev/null and b/resources/alibabacloud/database/relational-database-service.png differ diff --git a/resources/alibabacloud/iot/iot-internet-device-id.png b/resources/alibabacloud/iot/iot-internet-device-id.png new file mode 100644 index 0000000..52f17ae Binary files /dev/null and b/resources/alibabacloud/iot/iot-internet-device-id.png differ diff --git a/resources/alibabacloud/iot/iot-link-wan.png b/resources/alibabacloud/iot/iot-link-wan.png new file mode 100644 index 0000000..d94dc04 Binary files /dev/null and b/resources/alibabacloud/iot/iot-link-wan.png differ diff --git a/resources/alibabacloud/iot/iot-mobile-connection-package.png b/resources/alibabacloud/iot/iot-mobile-connection-package.png new file mode 100644 index 0000000..c5f40d6 Binary files /dev/null and b/resources/alibabacloud/iot/iot-mobile-connection-package.png differ diff --git a/resources/alibabacloud/iot/iot-platform.png b/resources/alibabacloud/iot/iot-platform.png new file mode 100644 index 0000000..5deb97e Binary files /dev/null and b/resources/alibabacloud/iot/iot-platform.png differ diff --git a/resources/alibabacloud/network/cdn.png b/resources/alibabacloud/network/cdn.png new file mode 100644 index 0000000..8beeaec Binary files /dev/null and b/resources/alibabacloud/network/cdn.png differ diff --git a/resources/alibabacloud/network/cloud-enterprise-network.png b/resources/alibabacloud/network/cloud-enterprise-network.png new file mode 100644 index 0000000..bbeb6e2 Binary files /dev/null and b/resources/alibabacloud/network/cloud-enterprise-network.png differ diff --git a/resources/alibabacloud/network/elastic-ip-address.png b/resources/alibabacloud/network/elastic-ip-address.png new file mode 100644 index 0000000..1495637 Binary files /dev/null and b/resources/alibabacloud/network/elastic-ip-address.png differ diff --git a/resources/alibabacloud/network/express-connect.png b/resources/alibabacloud/network/express-connect.png new file mode 100644 index 0000000..6147b01 Binary files /dev/null and b/resources/alibabacloud/network/express-connect.png differ diff --git a/resources/alibabacloud/network/nat-gateway.png b/resources/alibabacloud/network/nat-gateway.png new file mode 100644 index 0000000..24d9575 Binary files /dev/null and b/resources/alibabacloud/network/nat-gateway.png differ diff --git a/resources/alibabacloud/network/server-load-balancer.png b/resources/alibabacloud/network/server-load-balancer.png new file mode 100644 index 0000000..33380e3 Binary files /dev/null and b/resources/alibabacloud/network/server-load-balancer.png differ diff --git a/resources/alibabacloud/network/smart-access-gateway.png b/resources/alibabacloud/network/smart-access-gateway.png new file mode 100644 index 0000000..ab89625 Binary files /dev/null and b/resources/alibabacloud/network/smart-access-gateway.png differ diff --git a/resources/alibabacloud/network/virtual-private-cloud.png b/resources/alibabacloud/network/virtual-private-cloud.png new file mode 100644 index 0000000..8bbc893 Binary files /dev/null and b/resources/alibabacloud/network/virtual-private-cloud.png differ diff --git a/resources/alibabacloud/network/vpn-gateway.png b/resources/alibabacloud/network/vpn-gateway.png new file mode 100644 index 0000000..1f26934 Binary files /dev/null and b/resources/alibabacloud/network/vpn-gateway.png differ diff --git a/resources/alibabacloud/security/anti-bot-service.png b/resources/alibabacloud/security/anti-bot-service.png new file mode 100644 index 0000000..d688aba Binary files /dev/null and b/resources/alibabacloud/security/anti-bot-service.png differ diff --git a/resources/alibabacloud/security/anti-ddos-basic.png b/resources/alibabacloud/security/anti-ddos-basic.png new file mode 100644 index 0000000..9fee49f Binary files /dev/null and b/resources/alibabacloud/security/anti-ddos-basic.png differ diff --git a/resources/alibabacloud/security/anti-ddos-pro.png b/resources/alibabacloud/security/anti-ddos-pro.png new file mode 100644 index 0000000..98462f4 Binary files /dev/null and b/resources/alibabacloud/security/anti-ddos-pro.png differ diff --git a/resources/alibabacloud/security/antifraud-service.png b/resources/alibabacloud/security/antifraud-service.png new file mode 100644 index 0000000..0468dc0 Binary files /dev/null and b/resources/alibabacloud/security/antifraud-service.png differ diff --git a/resources/alibabacloud/security/bastion-host.png b/resources/alibabacloud/security/bastion-host.png new file mode 100644 index 0000000..ac2215f Binary files /dev/null and b/resources/alibabacloud/security/bastion-host.png differ diff --git a/resources/alibabacloud/security/cloud-firewall.png b/resources/alibabacloud/security/cloud-firewall.png new file mode 100644 index 0000000..7b80730 Binary files /dev/null and b/resources/alibabacloud/security/cloud-firewall.png differ diff --git a/resources/alibabacloud/security/cloud-security-scanner.png b/resources/alibabacloud/security/cloud-security-scanner.png new file mode 100644 index 0000000..fe9e828 Binary files /dev/null and b/resources/alibabacloud/security/cloud-security-scanner.png differ diff --git a/resources/alibabacloud/security/content-moderation.png b/resources/alibabacloud/security/content-moderation.png new file mode 100644 index 0000000..55f5b9c Binary files /dev/null and b/resources/alibabacloud/security/content-moderation.png differ diff --git a/resources/alibabacloud/security/crowdsourced-security-testing.png b/resources/alibabacloud/security/crowdsourced-security-testing.png new file mode 100644 index 0000000..144057d Binary files /dev/null and b/resources/alibabacloud/security/crowdsourced-security-testing.png differ diff --git a/resources/alibabacloud/security/data-encryption-service.png b/resources/alibabacloud/security/data-encryption-service.png new file mode 100644 index 0000000..e22c0a8 Binary files /dev/null and b/resources/alibabacloud/security/data-encryption-service.png differ diff --git a/resources/alibabacloud/security/db-audit.png b/resources/alibabacloud/security/db-audit.png new file mode 100644 index 0000000..195b11f Binary files /dev/null and b/resources/alibabacloud/security/db-audit.png differ diff --git a/resources/alibabacloud/security/game-shield.png b/resources/alibabacloud/security/game-shield.png new file mode 100644 index 0000000..a66127b Binary files /dev/null and b/resources/alibabacloud/security/game-shield.png differ diff --git a/resources/alibabacloud/security/id-verification.png b/resources/alibabacloud/security/id-verification.png new file mode 100644 index 0000000..512e872 Binary files /dev/null and b/resources/alibabacloud/security/id-verification.png differ diff --git a/resources/alibabacloud/security/managed-security-service.png b/resources/alibabacloud/security/managed-security-service.png new file mode 100644 index 0000000..c0e661c Binary files /dev/null and b/resources/alibabacloud/security/managed-security-service.png differ diff --git a/resources/alibabacloud/security/security-center.png b/resources/alibabacloud/security/security-center.png new file mode 100644 index 0000000..485141a Binary files /dev/null and b/resources/alibabacloud/security/security-center.png differ diff --git a/resources/alibabacloud/security/server-guard.png b/resources/alibabacloud/security/server-guard.png new file mode 100644 index 0000000..b924e71 Binary files /dev/null and b/resources/alibabacloud/security/server-guard.png differ diff --git a/resources/alibabacloud/security/ssl-certificates.png b/resources/alibabacloud/security/ssl-certificates.png new file mode 100644 index 0000000..23979bf Binary files /dev/null and b/resources/alibabacloud/security/ssl-certificates.png differ diff --git a/resources/alibabacloud/security/web-application-firewall.png b/resources/alibabacloud/security/web-application-firewall.png new file mode 100644 index 0000000..ecbd821 Binary files /dev/null and b/resources/alibabacloud/security/web-application-firewall.png differ diff --git a/resources/alibabacloud/storage/cloud-storage-gateway.png b/resources/alibabacloud/storage/cloud-storage-gateway.png new file mode 100644 index 0000000..d578e94 Binary files /dev/null and b/resources/alibabacloud/storage/cloud-storage-gateway.png differ diff --git a/resources/alibabacloud/storage/file-storage-hdfs.png b/resources/alibabacloud/storage/file-storage-hdfs.png new file mode 100644 index 0000000..9d965c6 Binary files /dev/null and b/resources/alibabacloud/storage/file-storage-hdfs.png differ diff --git a/resources/alibabacloud/storage/file-storage-nas.png b/resources/alibabacloud/storage/file-storage-nas.png new file mode 100644 index 0000000..264d9c0 Binary files /dev/null and b/resources/alibabacloud/storage/file-storage-nas.png differ diff --git a/resources/alibabacloud/storage/hybrid-backup-recovery.png b/resources/alibabacloud/storage/hybrid-backup-recovery.png new file mode 100644 index 0000000..94409b3 Binary files /dev/null and b/resources/alibabacloud/storage/hybrid-backup-recovery.png differ diff --git a/resources/alibabacloud/storage/hybrid-cloud-disaster-recovery.png b/resources/alibabacloud/storage/hybrid-cloud-disaster-recovery.png new file mode 100644 index 0000000..037a1cc Binary files /dev/null and b/resources/alibabacloud/storage/hybrid-cloud-disaster-recovery.png differ diff --git a/resources/alibabacloud/storage/imm.png b/resources/alibabacloud/storage/imm.png new file mode 100644 index 0000000..1bed849 Binary files /dev/null and b/resources/alibabacloud/storage/imm.png differ diff --git a/resources/alibabacloud/storage/object-storage-service.png b/resources/alibabacloud/storage/object-storage-service.png new file mode 100644 index 0000000..fb189dd Binary files /dev/null and b/resources/alibabacloud/storage/object-storage-service.png differ diff --git a/resources/alibabacloud/storage/object-table-store.png b/resources/alibabacloud/storage/object-table-store.png new file mode 100644 index 0000000..09a8cc7 Binary files /dev/null and b/resources/alibabacloud/storage/object-table-store.png differ diff --git a/resources/alibabacloud/web/dns.png b/resources/alibabacloud/web/dns.png new file mode 100644 index 0000000..f429fee Binary files /dev/null and b/resources/alibabacloud/web/dns.png differ diff --git a/resources/alibabacloud/web/domain.png b/resources/alibabacloud/web/domain.png new file mode 100644 index 0000000..6014bbb Binary files /dev/null and b/resources/alibabacloud/web/domain.png differ diff --git a/scripts/generate.py b/scripts/generate.py index dc28025..2f8522d 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -7,7 +7,7 @@ from jinja2 import Environment, FileSystemLoader, Template import config as cfg from . import app_root_dir, doc_root_dir, resource_dir, template_dir -_usage = "Usage: generate.py " +_usage = "Usage: generate.py " def load_tmpl(tmpl: str) -> Template: @@ -17,7 +17,11 @@ def load_tmpl(tmpl: str) -> Template: def up_or_title(pvd: str, s: str) -> str: - return s.upper() if s in cfg.UPPER_WORDS[pvd] else s.title() + if s in cfg.UPPER_WORDS.get(pvd, ()): + return s.upper() + elif s in cfg.TITLE_WORDS.get(pvd, {}): + return cfg.TITLE_WORDS[pvd][s] + return s.title() def gen_classes(pvd: str, typ: str, paths: Iterable[str]) -> str: diff --git a/scripts/resource.py b/scripts/resource.py index d9f130b..b024c2a 100644 --- a/scripts/resource.py +++ b/scripts/resource.py @@ -57,11 +57,20 @@ def cleaner_k8s(f): return f.lower() +def cleaner_alibabacloud(f): + for p in cfg.FILE_PREFIXES["alibabacloud"]: + if f.startswith(p): + f = f[len(p):] + break + return f.lower() + + cleaners = { "aws": cleaner_aws, "azure": cleaner_azure, "gcp": cleaner_gcp, "k8s": cleaner_k8s, + "alibabacloud": cleaner_alibabacloud, }