File tree Expand file tree Collapse file tree 4 files changed +30
-0
lines changed
scaleway-async/scaleway_async/s2s_vpn/v1alpha1
scaleway/scaleway/s2s_vpn/v1alpha1 Expand file tree Collapse file tree 4 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ def unmarshal_BgpSession(data: Any) -> BgpSession:
66
66
else :
67
67
args ["private_ip" ] = None
68
68
69
+ field = data .get ("peer_private_ip" , None )
70
+ if field is not None :
71
+ args ["peer_private_ip" ] = field
72
+ else :
73
+ args ["peer_private_ip" ] = None
74
+
69
75
return BgpSession (** args )
70
76
71
77
@@ -783,6 +789,12 @@ def marshal_CreateConnectionRequestBgpConfig(
783
789
if request .routing_policy_id is not None :
784
790
output ["routing_policy_id" ] = request .routing_policy_id
785
791
792
+ if request .private_ip is not None :
793
+ output ["private_ip" ] = request .private_ip
794
+
795
+ if request .peer_private_ip is not None :
796
+ output ["peer_private_ip" ] = request .peer_private_ip
797
+
786
798
return output
787
799
788
800
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ def __str__(self) -> str:
167
167
class BgpSession :
168
168
routing_policy_id : str
169
169
private_ip : str
170
+ peer_private_ip : str
170
171
171
172
172
173
@dataclass
@@ -190,6 +191,8 @@ class VpnGatewayPublicConfig:
190
191
@dataclass
191
192
class CreateConnectionRequestBgpConfig :
192
193
routing_policy_id : str
194
+ private_ip : Optional [str ] = None
195
+ peer_private_ip : Optional [str ] = None
193
196
194
197
195
198
@dataclass
Original file line number Diff line number Diff line change @@ -66,6 +66,12 @@ def unmarshal_BgpSession(data: Any) -> BgpSession:
66
66
else :
67
67
args ["private_ip" ] = None
68
68
69
+ field = data .get ("peer_private_ip" , None )
70
+ if field is not None :
71
+ args ["peer_private_ip" ] = field
72
+ else :
73
+ args ["peer_private_ip" ] = None
74
+
69
75
return BgpSession (** args )
70
76
71
77
@@ -783,6 +789,12 @@ def marshal_CreateConnectionRequestBgpConfig(
783
789
if request .routing_policy_id is not None :
784
790
output ["routing_policy_id" ] = request .routing_policy_id
785
791
792
+ if request .private_ip is not None :
793
+ output ["private_ip" ] = request .private_ip
794
+
795
+ if request .peer_private_ip is not None :
796
+ output ["peer_private_ip" ] = request .peer_private_ip
797
+
786
798
return output
787
799
788
800
Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ def __str__(self) -> str:
167
167
class BgpSession :
168
168
routing_policy_id : str
169
169
private_ip : str
170
+ peer_private_ip : str
170
171
171
172
172
173
@dataclass
@@ -190,6 +191,8 @@ class VpnGatewayPublicConfig:
190
191
@dataclass
191
192
class CreateConnectionRequestBgpConfig :
192
193
routing_policy_id : str
194
+ private_ip : Optional [str ] = None
195
+ peer_private_ip : Optional [str ] = None
193
196
194
197
195
198
@dataclass
You can’t perform that action at this time.
0 commit comments