From 22725dd09595af21e5f53d874332696f6e15c15e Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 15 Jun 2026 14:51:51 +0000 Subject: [PATCH] feat: update generated APIs --- .../scaleway_async/applesilicon/v1alpha1/api.py | 2 +- .../scaleway_async/autoscaling/v1alpha1/api.py | 2 +- scaleway-async/scaleway_async/dedibox/v1/types.py | 4 ++-- .../scaleway_async/iam/v1alpha1/types.py | 2 +- scaleway-async/scaleway_async/instance/v1/api.py | 2 +- scaleway-async/scaleway_async/iot/v1/api.py | 4 ++-- scaleway-async/scaleway_async/lb/v1/api.py | 4 ++-- scaleway-async/scaleway_async/rdb/v1/api.py | 8 ++++---- scaleway-async/scaleway_async/registry/v1/api.py | 2 +- scaleway-async/scaleway_async/registry/v1/types.py | 4 ++-- .../scaleway_async/webhosting/v1/__init__.py | 2 ++ .../scaleway_async/webhosting/v1/marshalling.py | 7 +++++++ .../scaleway_async/webhosting/v1/types.py | 14 ++++++++++++++ scaleway/scaleway/applesilicon/v1alpha1/api.py | 2 +- scaleway/scaleway/autoscaling/v1alpha1/api.py | 2 +- scaleway/scaleway/dedibox/v1/types.py | 4 ++-- scaleway/scaleway/iam/v1alpha1/types.py | 2 +- scaleway/scaleway/instance/v1/api.py | 2 +- scaleway/scaleway/iot/v1/api.py | 4 ++-- scaleway/scaleway/lb/v1/api.py | 4 ++-- scaleway/scaleway/rdb/v1/api.py | 8 ++++---- scaleway/scaleway/registry/v1/api.py | 2 +- scaleway/scaleway/registry/v1/types.py | 4 ++-- scaleway/scaleway/webhosting/v1/__init__.py | 2 ++ scaleway/scaleway/webhosting/v1/marshalling.py | 7 +++++++ scaleway/scaleway/webhosting/v1/types.py | 14 ++++++++++++++ 26 files changed, 80 insertions(+), 34 deletions(-) diff --git a/scaleway-async/scaleway_async/applesilicon/v1alpha1/api.py b/scaleway-async/scaleway_async/applesilicon/v1alpha1/api.py index 8a49e6f15..077584f27 100644 --- a/scaleway-async/scaleway_async/applesilicon/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/applesilicon/v1alpha1/api.py @@ -448,7 +448,7 @@ async def get_os( ) -> OS: """ Get an Operating System (OS). - Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label. + Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label. :param os_id: UUID of the OS you want to get. :param zone: Zone to target. If none is passed will use default zone from the config. :return: :class:`OS ` diff --git a/scaleway-async/scaleway_async/autoscaling/v1alpha1/api.py b/scaleway-async/scaleway_async/autoscaling/v1alpha1/api.py index ccfa6907f..8db810cad 100644 --- a/scaleway-async/scaleway_async/autoscaling/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/autoscaling/v1alpha1/api.py @@ -283,7 +283,7 @@ async def delete_instance_group( zone: Optional[ScwZone] = None, ) -> None: """ - Delete Instance group. + Delete Instance group. Delete an existing Instance group, specified by its `instance_group_id`. Deleting an Instance group is permanent, and cannot be undone. :param instance_group_id: ID of the Instance group to delete. :param zone: Zone to target. If none is passed will use default zone from the config. diff --git a/scaleway-async/scaleway_async/dedibox/v1/types.py b/scaleway-async/scaleway_async/dedibox/v1/types.py index 5e33a9ca5..4899a6643 100644 --- a/scaleway-async/scaleway_async/dedibox/v1/types.py +++ b/scaleway-async/scaleway_async/dedibox/v1/types.py @@ -984,7 +984,7 @@ class ServiceLevel: class RpnSan: id: int """ - RPN SAN ID. + RPN SAN ID. """ datacenter_name: str @@ -1711,7 +1711,7 @@ class RpnGroupMember: class RpnSanSummary: id: int """ - RPN SAN ID. + RPN SAN ID. """ datacenter_name: str diff --git a/scaleway-async/scaleway_async/iam/v1alpha1/types.py b/scaleway-async/scaleway_async/iam/v1alpha1/types.py index 8e6fcf23f..a5821e148 100644 --- a/scaleway-async/scaleway_async/iam/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/iam/v1alpha1/types.py @@ -647,7 +647,7 @@ class Log: resource_id: str """ - ID of the resource linked to the log. + ID of the resource linked to the log. """ created_at: Optional[datetime] = None diff --git a/scaleway-async/scaleway_async/instance/v1/api.py b/scaleway-async/scaleway_async/instance/v1/api.py index a27fb395c..1059a909f 100644 --- a/scaleway-async/scaleway_async/instance/v1/api.py +++ b/scaleway-async/scaleway_async/instance/v1/api.py @@ -933,7 +933,7 @@ async def server_action( * `poweroff`: Fully stop the Instance and release the hypervisor slot. * `stop_in_place`: Stop the Instance, but keep the slot on the hypervisor. * `reboot`: Stop the instance and restart it. - * `backup`: Create an image with all the volumes of an Instance. + * `backup`: Create an image with all the volumes of an Instance. * `terminate`: Delete the Instance along with its attached local volumes. * `enable_routed_ip`: Migrate the Instance to the new network stack. diff --git a/scaleway-async/scaleway_async/iot/v1/api.py b/scaleway-async/scaleway_async/iot/v1/api.py index 8e70fcbde..b4add189f 100644 --- a/scaleway-async/scaleway_async/iot/v1/api.py +++ b/scaleway-async/scaleway_async/iot/v1/api.py @@ -1498,7 +1498,7 @@ async def create_network( ) -> CreateNetworkResponse: """ Create a new network. - Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST. + Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST. :param type_: Type of network to connect with. :param hub_id: Hub ID to connect the Network to. :param topic_prefix: Topic prefix for the Network. @@ -1546,7 +1546,7 @@ async def get_network( ) -> Network: """ Retrieve a specific network. - Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint. + Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint. :param network_id: Network ID. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Network ` diff --git a/scaleway-async/scaleway_async/lb/v1/api.py b/scaleway-async/scaleway_async/lb/v1/api.py index b8b35c854..0d75e2d48 100644 --- a/scaleway-async/scaleway_async/lb/v1/api.py +++ b/scaleway-async/scaleway_async/lb/v1/api.py @@ -1724,7 +1724,7 @@ async def list_routes( ) -> ListRoutesResponse: """ List all routes. - List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). + List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). :param zone: Zone to target. If none is passed will use default zone from the config. :param order_by: Sort order of routes in the response. :param page_size: The number of route objects to return. @@ -1765,7 +1765,7 @@ async def list_routes_all( ) -> list[Route]: """ List all routes. - List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). + List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). :param zone: Zone to target. If none is passed will use default zone from the config. :param order_by: Sort order of routes in the response. :param page_size: The number of route objects to return. diff --git a/scaleway-async/scaleway_async/rdb/v1/api.py b/scaleway-async/scaleway_async/rdb/v1/api.py index 4dc748c21..f9483f740 100644 --- a/scaleway-async/scaleway_async/rdb/v1/api.py +++ b/scaleway-async/scaleway_async/rdb/v1/api.py @@ -1416,7 +1416,7 @@ async def get_read_replica( ) -> ReadReplica: """ Get a Read Replica. - Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. + Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. :param read_replica_id: UUID of the Read Replica. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`ReadReplica ` @@ -1453,7 +1453,7 @@ async def wait_for_read_replica( ) -> ReadReplica: """ Get a Read Replica. - Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. + Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. :param read_replica_id: UUID of the Read Replica. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`ReadReplica ` @@ -2420,7 +2420,7 @@ async def delete_user( ) -> None: """ Delete a user on a Database Instance. - Delete a given user on a Database Instance. You must specify, in the endpoint, the `region`, `instance_id` and `name` parameters of the user you want to delete. + Delete a given user on a Database Instance. You must specify, in the endpoint, the `region`, `instance_id` and `name` parameters of the user you want to delete. :param instance_id: UUID of the Database Instance to delete the user from. :param name: Name of the user. :param region: Region to target. If none is passed will use default region from the config. @@ -3061,7 +3061,7 @@ async def delete_snapshot( ) -> Snapshot: """ Delete a Database Instance snapshot. - Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `region` and `snapshot_id` parameters of the snapshot you want to delete. + Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `region` and `snapshot_id` parameters of the snapshot you want to delete. :param snapshot_id: UUID of the snapshot to delete. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Snapshot ` diff --git a/scaleway-async/scaleway_async/registry/v1/api.py b/scaleway-async/scaleway_async/registry/v1/api.py index bcc8c2550..1146fa00e 100644 --- a/scaleway-async/scaleway_async/registry/v1/api.py +++ b/scaleway-async/scaleway_async/registry/v1/api.py @@ -538,7 +538,7 @@ async def update_image( Update the parameters of a given image, specified by its `image_id` and `region`. You can update the `visibility` parameter. :param image_id: ID of the image to update. :param region: Region to target. If none is passed will use default region from the config. - :param visibility: Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. + :param visibility: Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. :return: :class:`Image ` Usage: diff --git a/scaleway-async/scaleway_async/registry/v1/types.py b/scaleway-async/scaleway_async/registry/v1/types.py index 9da5a41c5..8a4e01c1b 100644 --- a/scaleway-async/scaleway_async/registry/v1/types.py +++ b/scaleway-async/scaleway_async/registry/v1/types.py @@ -114,7 +114,7 @@ class Image: visibility: ImageVisibility """ - Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. + Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. """ size: int @@ -535,7 +535,7 @@ class UpdateImageRequest: visibility: Optional[ImageVisibility] = ImageVisibility.VISIBILITY_UNKNOWN """ - Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. + Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. """ diff --git a/scaleway-async/scaleway_async/webhosting/v1/__init__.py b/scaleway-async/scaleway_async/webhosting/v1/__init__.py index 2e0a5da2d..aac287a6f 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/__init__.py +++ b/scaleway-async/scaleway_async/webhosting/v1/__init__.py @@ -17,6 +17,7 @@ from .types import DomainStatus from .content import DOMAIN_TRANSIENT_STATUSES from .types import DomainZoneOwner +from .types import HostingProvider from .types import HostingStatus from .content import HOSTING_TRANSIENT_STATUSES from .types import ListBackupsRequestOrderBy @@ -168,6 +169,7 @@ "DomainStatus", "DOMAIN_TRANSIENT_STATUSES", "DomainZoneOwner", + "HostingProvider", "HostingStatus", "HOSTING_TRANSIENT_STATUSES", "ListBackupsRequestOrderBy", diff --git a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py index 3a5cfa52a..0fec03355 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/marshalling.py +++ b/scaleway-async/scaleway_async/webhosting/v1/marshalling.py @@ -27,6 +27,7 @@ DomainDnsAction, DomainStatus, DomainZoneOwner, + HostingProvider, HostingStatus, NameserverStatus, OfferOptionName, @@ -1229,6 +1230,12 @@ def unmarshal_Hosting(data: Any) -> Hosting: else: args["commitment"] = None + field = data.get("provider", None) + if field is not None: + args["provider"] = field + else: + args["provider"] = HostingProvider.UNKNOWN_PROVIDER + return Hosting(**args) diff --git a/scaleway-async/scaleway_async/webhosting/v1/types.py b/scaleway-async/scaleway_async/webhosting/v1/types.py index 4df2c5424..72d29eec6 100644 --- a/scaleway-async/scaleway_async/webhosting/v1/types.py +++ b/scaleway-async/scaleway_async/webhosting/v1/types.py @@ -183,6 +183,15 @@ def __str__(self) -> str: return str(self.value) +class HostingProvider(str, Enum, metaclass=StrEnumMeta): + UNKNOWN_PROVIDER = "unknown_provider" + ELEMENTS = "elements" + DEDIBOX = "dedibox" + + def __str__(self) -> str: + return str(self.value) + + class HostingStatus(str, Enum, metaclass=StrEnumMeta): UNKNOWN_STATUS = "unknown_status" DELIVERING = "delivering" @@ -1854,6 +1863,11 @@ class Hosting: Commitment details to which the hosting is engaged. """ + provider: Optional[HostingProvider] = HostingProvider.UNKNOWN_PROVIDER + """ + Provider where the Web Hosting plan is managed (elements, dedibox). + """ + @dataclass class HostingApiAddCustomDomainRequest: diff --git a/scaleway/scaleway/applesilicon/v1alpha1/api.py b/scaleway/scaleway/applesilicon/v1alpha1/api.py index 1972f3ef8..82601a988 100644 --- a/scaleway/scaleway/applesilicon/v1alpha1/api.py +++ b/scaleway/scaleway/applesilicon/v1alpha1/api.py @@ -448,7 +448,7 @@ def get_os( ) -> OS: """ Get an Operating System (OS). - Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label. + Get an Operating System (OS). The response will include the OS's unique ID as well as its name and label. :param os_id: UUID of the OS you want to get. :param zone: Zone to target. If none is passed will use default zone from the config. :return: :class:`OS ` diff --git a/scaleway/scaleway/autoscaling/v1alpha1/api.py b/scaleway/scaleway/autoscaling/v1alpha1/api.py index 73b6966d5..42c941b2d 100644 --- a/scaleway/scaleway/autoscaling/v1alpha1/api.py +++ b/scaleway/scaleway/autoscaling/v1alpha1/api.py @@ -283,7 +283,7 @@ def delete_instance_group( zone: Optional[ScwZone] = None, ) -> None: """ - Delete Instance group. + Delete Instance group. Delete an existing Instance group, specified by its `instance_group_id`. Deleting an Instance group is permanent, and cannot be undone. :param instance_group_id: ID of the Instance group to delete. :param zone: Zone to target. If none is passed will use default zone from the config. diff --git a/scaleway/scaleway/dedibox/v1/types.py b/scaleway/scaleway/dedibox/v1/types.py index 5e33a9ca5..4899a6643 100644 --- a/scaleway/scaleway/dedibox/v1/types.py +++ b/scaleway/scaleway/dedibox/v1/types.py @@ -984,7 +984,7 @@ class ServiceLevel: class RpnSan: id: int """ - RPN SAN ID. + RPN SAN ID. """ datacenter_name: str @@ -1711,7 +1711,7 @@ class RpnGroupMember: class RpnSanSummary: id: int """ - RPN SAN ID. + RPN SAN ID. """ datacenter_name: str diff --git a/scaleway/scaleway/iam/v1alpha1/types.py b/scaleway/scaleway/iam/v1alpha1/types.py index 8e6fcf23f..a5821e148 100644 --- a/scaleway/scaleway/iam/v1alpha1/types.py +++ b/scaleway/scaleway/iam/v1alpha1/types.py @@ -647,7 +647,7 @@ class Log: resource_id: str """ - ID of the resource linked to the log. + ID of the resource linked to the log. """ created_at: Optional[datetime] = None diff --git a/scaleway/scaleway/instance/v1/api.py b/scaleway/scaleway/instance/v1/api.py index 7ed8b4ecd..58a2eca6d 100644 --- a/scaleway/scaleway/instance/v1/api.py +++ b/scaleway/scaleway/instance/v1/api.py @@ -933,7 +933,7 @@ def server_action( * `poweroff`: Fully stop the Instance and release the hypervisor slot. * `stop_in_place`: Stop the Instance, but keep the slot on the hypervisor. * `reboot`: Stop the instance and restart it. - * `backup`: Create an image with all the volumes of an Instance. + * `backup`: Create an image with all the volumes of an Instance. * `terminate`: Delete the Instance along with its attached local volumes. * `enable_routed_ip`: Migrate the Instance to the new network stack. diff --git a/scaleway/scaleway/iot/v1/api.py b/scaleway/scaleway/iot/v1/api.py index ad775ed30..77537e9ee 100644 --- a/scaleway/scaleway/iot/v1/api.py +++ b/scaleway/scaleway/iot/v1/api.py @@ -1498,7 +1498,7 @@ def create_network( ) -> CreateNetworkResponse: """ Create a new network. - Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST. + Create a new network for an existing hub. Beside the default network, you can add networks for different data providers. Possible network types are Sigfox and REST. :param type_: Type of network to connect with. :param hub_id: Hub ID to connect the Network to. :param topic_prefix: Topic prefix for the Network. @@ -1546,7 +1546,7 @@ def get_network( ) -> Network: """ Retrieve a specific network. - Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint. + Retrieve an existing network, specified by its network ID. The response returns full details of the network, including its type, the topic prefix and its endpoint. :param network_id: Network ID. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Network ` diff --git a/scaleway/scaleway/lb/v1/api.py b/scaleway/scaleway/lb/v1/api.py index 34d82e18f..acc4b25b8 100644 --- a/scaleway/scaleway/lb/v1/api.py +++ b/scaleway/scaleway/lb/v1/api.py @@ -1724,7 +1724,7 @@ def list_routes( ) -> ListRoutesResponse: """ List all routes. - List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). + List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). :param zone: Zone to target. If none is passed will use default zone from the config. :param order_by: Sort order of routes in the response. :param page_size: The number of route objects to return. @@ -1765,7 +1765,7 @@ def list_routes_all( ) -> list[Route]: """ List all routes. - List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). + List all routes for a given frontend. The response is an array of routes, each one with a specified backend to direct to if a certain condition is matched (based on the value of the SNI field or HTTP Host header). :param zone: Zone to target. If none is passed will use default zone from the config. :param order_by: Sort order of routes in the response. :param page_size: The number of route objects to return. diff --git a/scaleway/scaleway/rdb/v1/api.py b/scaleway/scaleway/rdb/v1/api.py index 451d21173..c23ef4823 100644 --- a/scaleway/scaleway/rdb/v1/api.py +++ b/scaleway/scaleway/rdb/v1/api.py @@ -1412,7 +1412,7 @@ def get_read_replica( ) -> ReadReplica: """ Get a Read Replica. - Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. + Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. :param read_replica_id: UUID of the Read Replica. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`ReadReplica ` @@ -1447,7 +1447,7 @@ def wait_for_read_replica( ) -> ReadReplica: """ Get a Read Replica. - Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. + Retrieve information about a Database Instance Read Replica. Full details about the Read Replica, like `endpoints`, `status` and `region` are returned in the response. :param read_replica_id: UUID of the Read Replica. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`ReadReplica ` @@ -2412,7 +2412,7 @@ def delete_user( ) -> None: """ Delete a user on a Database Instance. - Delete a given user on a Database Instance. You must specify, in the endpoint, the `region`, `instance_id` and `name` parameters of the user you want to delete. + Delete a given user on a Database Instance. You must specify, in the endpoint, the `region`, `instance_id` and `name` parameters of the user you want to delete. :param instance_id: UUID of the Database Instance to delete the user from. :param name: Name of the user. :param region: Region to target. If none is passed will use default region from the config. @@ -3051,7 +3051,7 @@ def delete_snapshot( ) -> Snapshot: """ Delete a Database Instance snapshot. - Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `region` and `snapshot_id` parameters of the snapshot you want to delete. + Delete a given snapshot of a Database Instance. You must specify, in the endpoint, the `region` and `snapshot_id` parameters of the snapshot you want to delete. :param snapshot_id: UUID of the snapshot to delete. :param region: Region to target. If none is passed will use default region from the config. :return: :class:`Snapshot ` diff --git a/scaleway/scaleway/registry/v1/api.py b/scaleway/scaleway/registry/v1/api.py index 721f072e6..8b33a11d1 100644 --- a/scaleway/scaleway/registry/v1/api.py +++ b/scaleway/scaleway/registry/v1/api.py @@ -536,7 +536,7 @@ def update_image( Update the parameters of a given image, specified by its `image_id` and `region`. You can update the `visibility` parameter. :param image_id: ID of the image to update. :param region: Region to target. If none is passed will use default region from the config. - :param visibility: Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. + :param visibility: Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. :return: :class:`Image ` Usage: diff --git a/scaleway/scaleway/registry/v1/types.py b/scaleway/scaleway/registry/v1/types.py index 9da5a41c5..8a4e01c1b 100644 --- a/scaleway/scaleway/registry/v1/types.py +++ b/scaleway/scaleway/registry/v1/types.py @@ -114,7 +114,7 @@ class Image: visibility: ImageVisibility """ - Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. + Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. """ size: int @@ -535,7 +535,7 @@ class UpdateImageRequest: visibility: Optional[ImageVisibility] = ImageVisibility.VISIBILITY_UNKNOWN """ - Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. + Set to `public` to allow the image to be pulled without authentication. Else, set to `private`. Set to `inherit` to keep the same visibility configuration as the namespace. """ diff --git a/scaleway/scaleway/webhosting/v1/__init__.py b/scaleway/scaleway/webhosting/v1/__init__.py index 2e0a5da2d..aac287a6f 100644 --- a/scaleway/scaleway/webhosting/v1/__init__.py +++ b/scaleway/scaleway/webhosting/v1/__init__.py @@ -17,6 +17,7 @@ from .types import DomainStatus from .content import DOMAIN_TRANSIENT_STATUSES from .types import DomainZoneOwner +from .types import HostingProvider from .types import HostingStatus from .content import HOSTING_TRANSIENT_STATUSES from .types import ListBackupsRequestOrderBy @@ -168,6 +169,7 @@ "DomainStatus", "DOMAIN_TRANSIENT_STATUSES", "DomainZoneOwner", + "HostingProvider", "HostingStatus", "HOSTING_TRANSIENT_STATUSES", "ListBackupsRequestOrderBy", diff --git a/scaleway/scaleway/webhosting/v1/marshalling.py b/scaleway/scaleway/webhosting/v1/marshalling.py index 3a5cfa52a..0fec03355 100644 --- a/scaleway/scaleway/webhosting/v1/marshalling.py +++ b/scaleway/scaleway/webhosting/v1/marshalling.py @@ -27,6 +27,7 @@ DomainDnsAction, DomainStatus, DomainZoneOwner, + HostingProvider, HostingStatus, NameserverStatus, OfferOptionName, @@ -1229,6 +1230,12 @@ def unmarshal_Hosting(data: Any) -> Hosting: else: args["commitment"] = None + field = data.get("provider", None) + if field is not None: + args["provider"] = field + else: + args["provider"] = HostingProvider.UNKNOWN_PROVIDER + return Hosting(**args) diff --git a/scaleway/scaleway/webhosting/v1/types.py b/scaleway/scaleway/webhosting/v1/types.py index 4df2c5424..72d29eec6 100644 --- a/scaleway/scaleway/webhosting/v1/types.py +++ b/scaleway/scaleway/webhosting/v1/types.py @@ -183,6 +183,15 @@ def __str__(self) -> str: return str(self.value) +class HostingProvider(str, Enum, metaclass=StrEnumMeta): + UNKNOWN_PROVIDER = "unknown_provider" + ELEMENTS = "elements" + DEDIBOX = "dedibox" + + def __str__(self) -> str: + return str(self.value) + + class HostingStatus(str, Enum, metaclass=StrEnumMeta): UNKNOWN_STATUS = "unknown_status" DELIVERING = "delivering" @@ -1854,6 +1863,11 @@ class Hosting: Commitment details to which the hosting is engaged. """ + provider: Optional[HostingProvider] = HostingProvider.UNKNOWN_PROVIDER + """ + Provider where the Web Hosting plan is managed (elements, dedibox). + """ + @dataclass class HostingApiAddCustomDomainRequest: