Code cleanup per pull request feedback

pull/20/head
S M 6 years ago
parent 3b557b9959
commit b4a95cec81

@ -8,7 +8,7 @@
**Diagram as Code**.
Diagrams lets you draw the cloud system architecture **in Python code**. It was born for **prototyping** a new system architecture design without any design tools. You can also describe or visualize the existing system architecture as well. Diagrams currently supports five major providers: `AWS`, `Azure`, `GCP`, `Kubernetes`, `Alibaba Cloud` and `Oracle Cloud`.
Diagrams lets you draw the cloud system architecture **in Python code**. It was born for **prototyping** a new system architecture design without any design tools. You can also describe or visualize the existing system architecture as well. Diagrams currently supports six major providers: `AWS`, `Azure`, `GCP`, `Kubernetes`, `Alibaba Cloud` and `Oracle Cloud`.
**Diagram as Code** also allows you to **tracking** the architecture diagram changes on any **version control** system.

@ -31,7 +31,7 @@ FILE_PREFIXES = {
"gcp": ("cloud-",),
"k8s": (),
"alibabacloud": (),
"oci": ("OCI_",),
"oci": ("OCI-",),
}
#########################

@ -32,8 +32,8 @@ class Securitylists(_Network):
_icon = "securitylists.png"
class Service_Gateway(_Network):
_icon = "service_gateway.png"
class ServiceGateway(_Network):
_icon = "service-gateway.png"
class Vcloudnetwork(_Network):

@ -28,8 +28,8 @@ class Groups(_Security):
_icon = "groups.png"
class Id_Access(_Security):
_icon = "id_access.png"
class IdAccess(_Security):
_icon = "id-access.png"
class Keymgmt(_Security):

@ -51,7 +51,7 @@ from diagrams.k8s.network import Service
from diagrams.k8s.storage import PV, PVC, StorageClass
...
# Oracle resources
# oracle resources
from diagrams.oci.compute import VirtualMachine, Container
from diagrams.oci.network import Firewall
from diagrams.oci.storage import Filestorage, Storagegateway

@ -56,7 +56,7 @@ Node classes list of oci provider.
- **diagrams.oci.network.Loadbalance**
- **diagrams.oci.network.Routetable**
- **diagrams.oci.network.Securitylists**
- **diagrams.oci.network.Service_Gateway**
- **diagrams.oci.network.ServiceGateway**
- **diagrams.oci.network.Vcloudnetwork**
## oci.security
@ -66,7 +66,7 @@ Node classes list of oci provider.
- **diagrams.oci.security.Ddos**
- **diagrams.oci.security.Encryption**
- **diagrams.oci.security.Groups**
- **diagrams.oci.security.Id_Access**
- **diagrams.oci.security.IdAccess**
- **diagrams.oci.security.Keymgmt**
- **diagrams.oci.security.Ocid**
- **diagrams.oci.security.Policies**

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

@ -66,8 +66,8 @@ def cleaner_alibabacloud(f):
def cleaner_oci(f):
f = f.replace("-", "_")
f = f.replace("_grey", "")
f = f.replace("_", "-")
f = f.replace("-grey", "")
for p in cfg.FILE_PREFIXES["oci"]:
if f.startswith(p):
f = f[len(p) :]

Loading…
Cancel
Save