Skip to content

Commit

Permalink
Merge pull request #19 from Prodesire/master
Browse files Browse the repository at this point in the history
feat: add alibaba cloud resources
  • Loading branch information
mingrammer authored Feb 16, 2020
2 parents 889e4e0 + 7fbed07 commit 1f5dbb2
Show file tree
Hide file tree
Showing 111 changed files with 752 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
62 changes: 60 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DIR_RESOURCE = "resources"
DIR_TEMPLATE = "templates"

PROVIDERS = ("base", "aws", "azure", "gcp", "k8s")
PROVIDERS = ("base", "aws", "azure", "gcp", "k8s", "alibabacloud")

#########################
# Resource Processing #
Expand All @@ -27,6 +27,7 @@
"azure": ("azure-",),
"gcp": ("cloud-",),
"k8s": (),
"alibabacloud": (),
}

#########################
Expand All @@ -48,7 +49,13 @@
"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
Expand Down Expand Up @@ -198,5 +205,56 @@
"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",
}
}
}
12 changes: 12 additions & 0 deletions diagrams/alibabacloud/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
31 changes: 31 additions & 0 deletions diagrams/alibabacloud/analytics.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 _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
72 changes: 72 additions & 0 deletions diagrams/alibabacloud/application.py
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions diagrams/alibabacloud/communication.py
Original file line number Diff line number Diff line change
@@ -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
83 changes: 83 additions & 0 deletions diagrams/alibabacloud/compute.py
Original file line number Diff line number Diff line change
@@ -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
Loading

0 comments on commit 1f5dbb2

Please sign in to comment.