Skip to content

Commit 0fdbe57

Browse files
committed
chore: Linter Python Fixes
1 parent effbdf0 commit 0fdbe57

File tree

2 files changed

+48
-48
lines changed

2 files changed

+48
-48
lines changed

tools/apigee-hybrid-terraform/diagram/aks_draw.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
direction="LR",
3030
outformat="png",
3131
filename="apigee_hybrid_aks",
32-
graph_attr={
33-
"splines": "ortho",
34-
"nodesep": "0.8",
35-
"ranksep": "0.8",
36-
"pad": "0.5",
37-
"fontsize": "45",
38-
"fontname": "Arial",
39-
"fontcolor": "#2D3436",
40-
"bgcolor": "white"
41-
}):
32+
graph_attr={
33+
"splines": "ortho",
34+
"nodesep": "0.8",
35+
"ranksep": "0.8",
36+
"pad": "0.5",
37+
"fontsize": "45",
38+
"fontname": "Arial",
39+
"fontcolor": "#2D3436",
40+
"bgcolor": "white"
41+
}):
4242
# Client
4343
client = Users("Web/Mobile\nClients")
4444

@@ -51,18 +51,18 @@
5151
with Cluster("Node Pools", graph_attr={"fontsize": "14"}):
5252
runtime_pool = VM("Runtime Pool\n(Standard_D4s_v3)")
5353
data_pool = VM("Data Pool\n(Standard_D4s_v3)")
54-
aks >> Edge(label="API Calls",
55-
fontsize="16",
56-
style="bold",
54+
aks >> Edge(label="API Calls",
55+
fontsize="16",
56+
style="bold",
5757
color="green") >> runtime_pool
5858

59-
lb >> Edge(label="API Calls",
60-
fontsize="16",
61-
style="bold",
59+
lb >> Edge(label="API Calls",
60+
fontsize="16",
61+
style="bold",
6262
color="green") >> aks
63-
runtime_pool >> Edge(label="Outbound",
63+
runtime_pool >> Edge(label="Outbound",
6464
fontsize="12") >> nat
65-
data_pool >> Edge(label="Outbound",
65+
data_pool >> Edge(label="Outbound",
6666
fontsize="12") >> nat
6767

6868
# GCP Resources
@@ -73,13 +73,13 @@
7373
monitoring = Monitoring("Cloud Monitoring")
7474

7575
# Connections
76-
client >> Edge(label="API Calls",
77-
fontsize="16",
78-
style="bold",
76+
client >> Edge(label="API Calls",
77+
fontsize="16",
78+
style="bold",
7979
color="green") >> lb
80-
nat >> Edge(label="Google APIs",
80+
nat >> Edge(label="Google APIs",
8181
fontsize="12") >> apigee
82-
nat >> Edge(label="Google APIs",
82+
nat >> Edge(label="Google APIs",
8383
fontsize="12") >> logging
8484
nat >> Edge(label="Google APIs",
85-
fontsize="12") >> monitoring
85+
fontsize="12") >> monitoring

tools/apigee-hybrid-terraform/diagram/gke_draw.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@
2929
direction="LR",
3030
outformat="png",
3131
filename="apigee_hybrid_gke",
32-
graph_attr={
33-
"splines": "ortho",
34-
"nodesep": "0.8",
35-
"ranksep": "0.8",
36-
"pad": "0.5",
37-
"fontsize": "45",
38-
"fontname": "Arial",
39-
"fontcolor": "#2D3436",
40-
"bgcolor": "white"
41-
}):
32+
graph_attr={
33+
"splines": "ortho",
34+
"nodesep": "0.8",
35+
"ranksep": "0.8",
36+
"pad": "0.5",
37+
"fontsize": "45",
38+
"fontname": "Arial",
39+
"fontcolor": "#2D3436",
40+
"bgcolor": "white"
41+
}):
4242
# Client
4343
client = Users("Web/Mobile\nClients")
4444

@@ -55,18 +55,18 @@
5555
"Runtime Pool\n(e2-standard-4)")
5656
data_pool = ComputeEngine(
5757
"Data Pool\n(e2-standard-4)")
58-
gke >> Edge(label="API Calls",
59-
fontsize="16",
60-
style="bold",
58+
gke >> Edge(label="API Calls",
59+
fontsize="16",
60+
style="bold",
6161
color="green") >> runtime_pool
6262

63-
lb >> Edge(label="API Calls",
64-
fontsize="16",
65-
style="bold",
63+
lb >> Edge(label="API Calls",
64+
fontsize="16",
65+
style="bold",
6666
color="green") >> gke
67-
runtime_pool >> Edge(label="Outbound",
67+
runtime_pool >> Edge(label="Outbound",
6868
fontsize="12") >> nat
69-
data_pool >> Edge(label="Outbound",
69+
data_pool >> Edge(label="Outbound",
7070
fontsize="12") >> nat
7171

7272
with Cluster("Apigee Organization", graph_attr={"fontsize": "16"}):
@@ -75,13 +75,13 @@
7575
monitoring = Monitoring("Cloud Monitoring")
7676

7777
# Connections
78-
client >> Edge(label="API Calls",
79-
fontsize="16",
80-
style="bold",
78+
client >> Edge(label="API Calls",
79+
fontsize="16",
80+
style="bold",
8181
color="green") >> lb
82-
nat >> Edge(label="Google APIs",
82+
nat >> Edge(label="Google APIs",
8383
fontsize="12") >> apigee
84-
nat >> Edge(label="Google APIs",
84+
nat >> Edge(label="Google APIs",
8585
fontsize="12") >> logging
8686
nat >> Edge(label="Google APIs",
87-
fontsize="12") >> monitoring
87+
fontsize="12") >> monitoring

0 commit comments

Comments
 (0)