Skip to content

Commit a78e3cf

Browse files
authored
feat(core): export all regions and zones (#32)
1 parent fe80b58 commit a78e3cf

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

scaleway-async/scaleway_async/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
from scaleway_core.bridge import (
2626
Money,
2727
Region,
28+
ALL_REGIONS,
2829
Zone,
30+
ALL_ZONES,
2931
ScwFile,
3032
ServiceInfo,
3133
TimeSeriesPoint,
@@ -43,7 +45,9 @@
4345
"WaitForStopCondition",
4446
"Money",
4547
"Region",
48+
"ALL_REGIONS",
4649
"Zone",
50+
"ALL_ZONES",
4751
"ScwFile",
4852
"ServiceInfo",
4953
"TimeSeriesPoint",

scaleway-core/scaleway_core/bridge/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
from .money import marshal_Money
44

55
from .region import Region
6+
from .region import ALL_REGIONS
67
from .zone import Zone
8+
from .zone import ALL_ZONES
79

810
from .scwfile import ScwFile
911
from .scwfile import unmarshal_ScwFile
@@ -23,7 +25,9 @@
2325
"unmarshal_Money",
2426
"marshal_Money",
2527
"Region",
28+
"ALL_REGIONS",
2629
"Zone",
30+
"ALL_ZONES",
2731
"ScwFile",
2832
"unmarshal_ScwFile",
2933
"marshal_ScwFile",

scaleway-core/scaleway_core/bridge/region.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
REGION_FR_PAR = Region("fr-par")
33
REGION_NL_AMS = Region("nl-ams")
44
REGION_PL_WAW = Region("pl-waw")
5+
6+
ALL_REGIONS = [
7+
REGION_FR_PAR,
8+
REGION_NL_AMS,
9+
REGION_PL_WAW,
10+
]

scaleway-core/scaleway_core/bridge/zone.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,13 @@
66
ZONE_NL_AMS_2 = Zone("nl-ams-2")
77
ZONE_PL_WAW_1 = Zone("pl-waw-1")
88
ZONE_PL_WAW_2 = Zone("pl-waw-2")
9+
10+
ALL_ZONES = [
11+
ZONE_FR_PAR_1,
12+
ZONE_FR_PAR_2,
13+
ZONE_FR_PAR_3,
14+
ZONE_NL_AMS_1,
15+
ZONE_NL_AMS_2,
16+
ZONE_PL_WAW_1,
17+
ZONE_PL_WAW_2,
18+
]

scaleway/scaleway/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
from scaleway_core.bridge import (
2626
Money,
2727
Region,
28+
ALL_REGIONS,
2829
Zone,
30+
ALL_ZONES,
2931
ScwFile,
3032
ServiceInfo,
3133
TimeSeriesPoint,
@@ -43,7 +45,9 @@
4345
"WaitForStopCondition",
4446
"Money",
4547
"Region",
48+
"ALL_REGIONS",
4649
"Zone",
50+
"ALL_ZONES",
4751
"ScwFile",
4852
"ServiceInfo",
4953
"TimeSeriesPoint",

0 commit comments

Comments
 (0)