Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <Hosting>`

Usage:
Expand Down Expand Up @@ -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,
),
Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 5 additions & 0 deletions scaleway-async/scaleway_async/webhosting/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions scaleway/scaleway/webhosting/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <Hosting>`

Usage:
Expand Down Expand Up @@ -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,
),
Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/webhosting/v1/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
5 changes: 5 additions & 0 deletions scaleway/scaleway/webhosting/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading