Skip to content

Commit

Permalink
feat(interlink): add available_link_bandwidths on pops (scaleway#800)
Browse files Browse the repository at this point in the history
Co-authored-by: Jules Castéran <[email protected]>
  • Loading branch information
2 people authored and Laure-di committed Jan 6, 2025
1 parent 900fad6 commit ddfaf8e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ def unmarshal_Pop(data: Any) -> Pop:
if field is not None:
args["logo_url"] = field

field = data.get("available_link_bandwidths_mbps", None)
if field is not None:
args["available_link_bandwidths_mbps"] = field

field = data.get("region", None)
if field is not None:
args["region"] = field
Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/interlink/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ class Pop:
Image URL of the PoP's logo.
"""

available_link_bandwidths_mbps: List[int]
"""
Available bandwidth in Mbits/s for future hosted_links from available ports in this PoP.
"""

region: Region
"""
Region of the PoP.
Expand Down
4 changes: 4 additions & 0 deletions scaleway/scaleway/interlink/v1beta1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@ def unmarshal_Pop(data: Any) -> Pop:
if field is not None:
args["logo_url"] = field

field = data.get("available_link_bandwidths_mbps", None)
if field is not None:
args["available_link_bandwidths_mbps"] = field

field = data.get("region", None)
if field is not None:
args["region"] = field
Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/interlink/v1beta1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,11 @@ class Pop:
Image URL of the PoP's logo.
"""

available_link_bandwidths_mbps: List[int]
"""
Available bandwidth in Mbits/s for future hosted_links from available ports in this PoP.
"""

region: Region
"""
Region of the PoP.
Expand Down

0 comments on commit ddfaf8e

Please sign in to comment.