Skip to content

Commit ddfaf8e

Browse files
scaleway-botCodelax
authored andcommitted
feat(interlink): add available_link_bandwidths on pops (scaleway#800)
Co-authored-by: Jules Castéran <[email protected]>
1 parent 900fad6 commit ddfaf8e

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

scaleway-async/scaleway_async/interlink/v1beta1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ def unmarshal_Pop(data: Any) -> Pop:
195195
if field is not None:
196196
args["logo_url"] = field
197197

198+
field = data.get("available_link_bandwidths_mbps", None)
199+
if field is not None:
200+
args["available_link_bandwidths_mbps"] = field
201+
198202
field = data.get("region", None)
199203
if field is not None:
200204
args["region"] = field

scaleway-async/scaleway_async/interlink/v1beta1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ class Pop:
244244
Image URL of the PoP's logo.
245245
"""
246246

247+
available_link_bandwidths_mbps: List[int]
248+
"""
249+
Available bandwidth in Mbits/s for future hosted_links from available ports in this PoP.
250+
"""
251+
247252
region: Region
248253
"""
249254
Region of the PoP.

scaleway/scaleway/interlink/v1beta1/marshalling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ def unmarshal_Pop(data: Any) -> Pop:
195195
if field is not None:
196196
args["logo_url"] = field
197197

198+
field = data.get("available_link_bandwidths_mbps", None)
199+
if field is not None:
200+
args["available_link_bandwidths_mbps"] = field
201+
198202
field = data.get("region", None)
199203
if field is not None:
200204
args["region"] = field

scaleway/scaleway/interlink/v1beta1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@ class Pop:
244244
Image URL of the PoP's logo.
245245
"""
246246

247+
available_link_bandwidths_mbps: List[int]
248+
"""
249+
Available bandwidth in Mbits/s for future hosted_links from available ports in this PoP.
250+
"""
251+
247252
region: Region
248253
"""
249254
Region of the PoP.

0 commit comments

Comments
 (0)