You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scaleway-async/scaleway_async/interlink/v1beta1/api.py
+6
Original file line number
Diff line number
Diff line change
@@ -764,6 +764,7 @@ async def create_link(
764
764
tags: Optional[List[str]] =None,
765
765
connection_id: Optional[str] =None,
766
766
partner_id: Optional[str] =None,
767
+
peer_asn: Optional[int] =None,
767
768
) ->Link:
768
769
"""
769
770
Create a link.
@@ -778,6 +779,7 @@ async def create_link(
778
779
One-Of ('host'): at most one of 'connection_id', 'partner_id' could be set.
779
780
:param partner_id: If set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth.
780
781
One-Of ('host'): at most one of 'connection_id', 'partner_id' could be set.
782
+
:param peer_asn: For self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
781
783
:return: :class:`Link <Link>`
782
784
783
785
Usage:
@@ -805,6 +807,7 @@ async def create_link(
805
807
region=region,
806
808
project_id=project_id,
807
809
tags=tags,
810
+
peer_asn=peer_asn,
808
811
connection_id=connection_id,
809
812
partner_id=partner_id,
810
813
),
@@ -822,6 +825,7 @@ async def update_link(
822
825
region: Optional[ScwRegion] =None,
823
826
name: Optional[str] =None,
824
827
tags: Optional[List[str]] =None,
828
+
peer_asn: Optional[int] =None,
825
829
) ->Link:
826
830
"""
827
831
Update a link.
@@ -830,6 +834,7 @@ async def update_link(
830
834
:param region: Region to target. If none is passed will use default region from the config.
831
835
:param name: Name of the link.
832
836
:param tags: List of tags to apply to the link.
837
+
:param peer_asn: For self-hosted links, AS Number to establish BGP session.
Copy file name to clipboardExpand all lines: scaleway/scaleway/interlink/v1beta1/api.py
+6
Original file line number
Diff line number
Diff line change
@@ -762,6 +762,7 @@ def create_link(
762
762
tags: Optional[List[str]] =None,
763
763
connection_id: Optional[str] =None,
764
764
partner_id: Optional[str] =None,
765
+
peer_asn: Optional[int] =None,
765
766
) ->Link:
766
767
"""
767
768
Create a link.
@@ -776,6 +777,7 @@ def create_link(
776
777
One-Of ('host'): at most one of 'connection_id', 'partner_id' could be set.
777
778
:param partner_id: If set, creates a hosted link on a partner's connection. Specify the ID of the chosen partner, who already has a shared connection with available bandwidth.
778
779
One-Of ('host'): at most one of 'connection_id', 'partner_id' could be set.
780
+
:param peer_asn: For self-hosted links we need the peer AS Number to establish BGP session. If not given, a default one will be assigned.
779
781
:return: :class:`Link <Link>`
780
782
781
783
Usage:
@@ -803,6 +805,7 @@ def create_link(
803
805
region=region,
804
806
project_id=project_id,
805
807
tags=tags,
808
+
peer_asn=peer_asn,
806
809
connection_id=connection_id,
807
810
partner_id=partner_id,
808
811
),
@@ -820,6 +823,7 @@ def update_link(
820
823
region: Optional[ScwRegion] =None,
821
824
name: Optional[str] =None,
822
825
tags: Optional[List[str]] =None,
826
+
peer_asn: Optional[int] =None,
823
827
) ->Link:
824
828
"""
825
829
Update a link.
@@ -828,6 +832,7 @@ def update_link(
828
832
:param region: Region to target. If none is passed will use default region from the config.
829
833
:param name: Name of the link.
830
834
:param tags: List of tags to apply to the link.
835
+
:param peer_asn: For self-hosted links, AS Number to establish BGP session.
0 commit comments