Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions scaleway-async/scaleway_async/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
from scaleway_core.bridge import (
Money,
Region,
ALL_REGIONS,
Zone,
ALL_ZONES,
ScwFile,
ServiceInfo,
TimeSeriesPoint,
Expand All @@ -43,7 +45,9 @@
"WaitForStopCondition",
"Money",
"Region",
"ALL_REGIONS",
"Zone",
"ALL_ZONES",
"ScwFile",
"ServiceInfo",
"TimeSeriesPoint",
Expand Down
4 changes: 4 additions & 0 deletions scaleway-core/scaleway_core/bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
from .money import marshal_Money

from .region import Region
from .region import ALL_REGIONS
from .zone import Zone
from .zone import ALL_ZONES

from .scwfile import ScwFile
from .scwfile import unmarshal_ScwFile
Expand All @@ -23,7 +25,9 @@
"unmarshal_Money",
"marshal_Money",
"Region",
"ALL_REGIONS",
"Zone",
"ALL_ZONES",
"ScwFile",
"unmarshal_ScwFile",
"marshal_ScwFile",
Expand Down
6 changes: 6 additions & 0 deletions scaleway-core/scaleway_core/bridge/region.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
REGION_FR_PAR = Region("fr-par")
REGION_NL_AMS = Region("nl-ams")
REGION_PL_WAW = Region("pl-waw")

ALL_REGIONS = [
REGION_FR_PAR,
REGION_NL_AMS,
REGION_PL_WAW,
]
10 changes: 10 additions & 0 deletions scaleway-core/scaleway_core/bridge/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@
ZONE_NL_AMS_2 = Zone("nl-ams-2")
ZONE_PL_WAW_1 = Zone("pl-waw-1")
ZONE_PL_WAW_2 = Zone("pl-waw-2")

ALL_ZONES = [
ZONE_FR_PAR_1,
ZONE_FR_PAR_2,
ZONE_FR_PAR_3,
ZONE_NL_AMS_1,
ZONE_NL_AMS_2,
ZONE_PL_WAW_1,
ZONE_PL_WAW_2,
]
4 changes: 4 additions & 0 deletions scaleway/scaleway/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
from scaleway_core.bridge import (
Money,
Region,
ALL_REGIONS,
Zone,
ALL_ZONES,
ScwFile,
ServiceInfo,
TimeSeriesPoint,
Expand All @@ -43,7 +45,9 @@
"WaitForStopCondition",
"Money",
"Region",
"ALL_REGIONS",
"Zone",
"ALL_ZONES",
"ScwFile",
"ServiceInfo",
"TimeSeriesPoint",
Expand Down