diff --git a/scaleway-async/scaleway_async/webhosting/v1/api.py b/scaleway-async/scaleway_async/webhosting/v1/api.py index dd0f1f70a..13b642570 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/api.py +++ b/scaleway-async/scaleway_async/webhosting/v1/api.py @@ -1772,6 +1772,7 @@ async def update_hosting( offer_options: Optional[list[OfferOptionRequest]] = None, offer_id: Optional[str] = None, protected: Optional[bool] = None, + delete_hosting_after_commitment: Optional[bool] = None, ) -> Hosting: """ Update a Web Hosting plan. @@ -1783,6 +1784,7 @@ async def update_hosting( :param offer_options: List of the Web Hosting plan options IDs with their quantities. :param offer_id: ID of the new offer for the Web Hosting plan. :param protected: Whether the hosting is protected or not. + :param delete_hosting_after_commitment: Whether the hosting is deleted at the end of the commitment period. :return: :class:`Hosting ` Usage: @@ -1810,6 +1812,7 @@ async def update_hosting( offer_options=offer_options, offer_id=offer_id, protected=protected, + delete_hosting_after_commitment=delete_hosting_after_commitment, ), self.client, ), diff --git a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py index 11716a02c..dfda75907 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py +++ b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py @@ -2273,6 +2273,11 @@ def marshal_HostingApiUpdateHostingRequest( if request.protected is not None: output["protected"] = request.protected + if request.delete_hosting_after_commitment is not None: + output["delete_hosting_after_commitment"] = ( + request.delete_hosting_after_commitment + ) + return output diff --git a/scaleway-async/scaleway_async/webhosting/v1/types.py b/scaleway-async/scaleway_async/webhosting/v1/types.py index 49f5901cb..7afb73c3e 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/types.py +++ b/scaleway-async/scaleway_async/webhosting/v1/types.py @@ -2214,6 +2214,11 @@ class HostingApiUpdateHostingRequest: Whether the hosting is protected or not. """ + delete_hosting_after_commitment: Optional[bool] = False + """ + Whether the hosting is deleted at the end of the commitment period. + """ + @dataclass class ListBackupItemsResponse: diff --git a/scaleway/scaleway/webhosting/v1/api.py b/scaleway/scaleway/webhosting/v1/api.py index dd9cece7b..2e5b94391 100644 --- a/scaleway/scaleway/webhosting/v1/api.py +++ b/scaleway/scaleway/webhosting/v1/api.py @@ -1772,6 +1772,7 @@ def update_hosting( offer_options: Optional[list[OfferOptionRequest]] = None, offer_id: Optional[str] = None, protected: Optional[bool] = None, + delete_hosting_after_commitment: Optional[bool] = None, ) -> Hosting: """ Update a Web Hosting plan. @@ -1783,6 +1784,7 @@ def update_hosting( :param offer_options: List of the Web Hosting plan options IDs with their quantities. :param offer_id: ID of the new offer for the Web Hosting plan. :param protected: Whether the hosting is protected or not. + :param delete_hosting_after_commitment: Whether the hosting is deleted at the end of the commitment period. :return: :class:`Hosting ` Usage: @@ -1810,6 +1812,7 @@ def update_hosting( offer_options=offer_options, offer_id=offer_id, protected=protected, + delete_hosting_after_commitment=delete_hosting_after_commitment, ), self.client, ), diff --git a/scaleway/scaleway/webhosting/v1/marshalling.py b/scaleway/scaleway/webhosting/v1/marshalling.py index 11716a02c..dfda75907 100644 --- a/scaleway/scaleway/webhosting/v1/marshalling.py +++ b/scaleway/scaleway/webhosting/v1/marshalling.py @@ -2273,6 +2273,11 @@ def marshal_HostingApiUpdateHostingRequest( if request.protected is not None: output["protected"] = request.protected + if request.delete_hosting_after_commitment is not None: + output["delete_hosting_after_commitment"] = ( + request.delete_hosting_after_commitment + ) + return output diff --git a/scaleway/scaleway/webhosting/v1/types.py b/scaleway/scaleway/webhosting/v1/types.py index 49f5901cb..7afb73c3e 100644 --- a/scaleway/scaleway/webhosting/v1/types.py +++ b/scaleway/scaleway/webhosting/v1/types.py @@ -2214,6 +2214,11 @@ class HostingApiUpdateHostingRequest: Whether the hosting is protected or not. """ + delete_hosting_after_commitment: Optional[bool] = False + """ + Whether the hosting is deleted at the end of the commitment period. + """ + @dataclass class ListBackupItemsResponse: