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/vpcgw/v1/api.py
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@
58
58
UpdateGatewayRequest,
59
59
UpdateIPRequest,
60
60
UpdatePATRuleRequest,
61
+
UpgradeGatewayRequest,
61
62
)
62
63
from .contentimport (
63
64
GATEWAY_NETWORK_TRANSIENT_STATUSES,
@@ -93,6 +94,7 @@
93
94
marshal_UpdateGatewayRequest,
94
95
marshal_UpdateIPRequest,
95
96
marshal_UpdatePATRuleRequest,
97
+
marshal_UpgradeGatewayRequest,
96
98
)
97
99
98
100
@@ -448,12 +450,14 @@ async def upgrade_gateway(
448
450
*,
449
451
gateway_id: str,
450
452
zone: Optional[Zone] =None,
453
+
type_: Optional[str] =None,
451
454
) ->Gateway:
452
455
"""
453
-
Upgrade a Public Gateway to the latest version.
454
-
Upgrade a given Public Gateway to the newest software version. This applies the latest bugfixes and features to your Public Gateway, but its service will be interrupted during the update.
456
+
Upgrade a Public Gateway to the latest version and/or to a different commercial offer type.
457
+
Upgrade a given Public Gateway to the newest software version or to a different commercial offer type. This applies the latest bugfixes and features to your Public Gateway. Note that gateway service will be interrupted during the update.
455
458
:param gateway_id: ID of the gateway to upgrade.
456
459
:param zone: Zone to target. If none is passed will use default zone from the config.
Copy file name to clipboardExpand all lines: scaleway/scaleway/vpcgw/v1/api.py
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,7 @@
58
58
UpdateGatewayRequest,
59
59
UpdateIPRequest,
60
60
UpdatePATRuleRequest,
61
+
UpgradeGatewayRequest,
61
62
)
62
63
from .contentimport (
63
64
GATEWAY_NETWORK_TRANSIENT_STATUSES,
@@ -93,6 +94,7 @@
93
94
marshal_UpdateGatewayRequest,
94
95
marshal_UpdateIPRequest,
95
96
marshal_UpdatePATRuleRequest,
97
+
marshal_UpgradeGatewayRequest,
96
98
)
97
99
98
100
@@ -448,12 +450,14 @@ def upgrade_gateway(
448
450
*,
449
451
gateway_id: str,
450
452
zone: Optional[Zone] =None,
453
+
type_: Optional[str] =None,
451
454
) ->Gateway:
452
455
"""
453
-
Upgrade a Public Gateway to the latest version.
454
-
Upgrade a given Public Gateway to the newest software version. This applies the latest bugfixes and features to your Public Gateway, but its service will be interrupted during the update.
456
+
Upgrade a Public Gateway to the latest version and/or to a different commercial offer type.
457
+
Upgrade a given Public Gateway to the newest software version or to a different commercial offer type. This applies the latest bugfixes and features to your Public Gateway. Note that gateway service will be interrupted during the update.
455
458
:param gateway_id: ID of the gateway to upgrade.
456
459
:param zone: Zone to target. If none is passed will use default zone from the config.
0 commit comments