From ac4d113dcf209ad9f2f4fd433bc2f2cdd481d8b9 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Mon, 20 Jul 2026 14:31:46 +0000 Subject: [PATCH] feat(autoscaling): update api default version to v1alpha2 --- .../datawarehouse/v1beta1/marshalling.py | 30 +++++++++++++++++++ .../datawarehouse/v1beta1/types.py | 25 ++++++++++++++++ scaleway-async/scaleway_async/lb/v1/api.py | 12 ++++++++ scaleway-async/scaleway_async/lb/v1/types.py | 10 +++++++ .../datawarehouse/v1beta1/marshalling.py | 30 +++++++++++++++++++ .../scaleway/datawarehouse/v1beta1/types.py | 25 ++++++++++++++++ scaleway/scaleway/lb/v1/api.py | 12 ++++++++ scaleway/scaleway/lb/v1/types.py | 10 +++++++ 8 files changed, 154 insertions(+) diff --git a/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py b/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py index ef704f715..ac1f970dc 100644 --- a/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py +++ b/scaleway-async/scaleway_async/datawarehouse/v1beta1/marshalling.py @@ -161,6 +161,12 @@ def unmarshal_Endpoint(data: Any) -> Endpoint: else: args["services"] = [] + field = data.get("region", None) + if field is not None: + args["region"] = field + else: + args["region"] = None + field = data.get("private_network", None) if field is not None: args["private_network"] = unmarshal_PrivateNetworkDetails(field) @@ -196,6 +202,18 @@ def unmarshal_Database(data: Any) -> Database: else: args["size"] = 0 + field = data.get("deployment_id", None) + if field is not None: + args["deployment_id"] = field + else: + args["deployment_id"] = None + + field = data.get("region", None) + if field is not None: + args["region"] = field + else: + args["region"] = None + return Database(**args) @@ -334,6 +352,18 @@ def unmarshal_User(data: Any) -> User: else: args["is_admin"] = False + field = data.get("deployment_id", None) + if field is not None: + args["deployment_id"] = field + else: + args["deployment_id"] = None + + field = data.get("region", None) + if field is not None: + args["region"] = field + else: + args["region"] = None + return User(**args) diff --git a/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py b/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py index 20cb571ef..c7115e293 100644 --- a/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py +++ b/scaleway-async/scaleway_async/datawarehouse/v1beta1/types.py @@ -141,6 +141,11 @@ class Endpoint: List of services associated with the endpoint. """ + region: ScwRegion + """ + Region of the deployment. + """ + private_network: Optional[PrivateNetworkDetails] = None public: Optional[EndpointPublicDetails] = None @@ -165,6 +170,16 @@ class Database: Size of the database. """ + deployment_id: str + """ + Identifier of the deployment. + """ + + region: ScwRegion + """ + Region of the deployment. + """ + @dataclass class Deployment: @@ -304,6 +319,16 @@ class User: Indicates if the user is an administrator. """ + deployment_id: str + """ + Identifier of the deployment. + """ + + region: ScwRegion + """ + Region of the deployment. + """ + @dataclass class Version: diff --git a/scaleway-async/scaleway_async/lb/v1/api.py b/scaleway-async/scaleway_async/lb/v1/api.py index 0d75e2d48..2e625ca7b 100644 --- a/scaleway-async/scaleway_async/lb/v1/api.py +++ b/scaleway-async/scaleway_async/lb/v1/api.py @@ -218,6 +218,7 @@ async def list_lbs( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> ListLbsResponse: """ List Load Balancers. @@ -230,6 +231,7 @@ async def list_lbs( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`ListLbsResponse ` Usage: @@ -244,6 +246,7 @@ async def list_lbs( "GET", f"/lb/v1/zones/{param_zone}/lbs", params={ + "lb_ids": lb_ids, "name": name, "order_by": order_by, "organization_id": organization_id @@ -269,6 +272,7 @@ async def list_lbs_all( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> list[Lb]: """ List Load Balancers. @@ -281,6 +285,7 @@ async def list_lbs_all( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`list[Lb] ` Usage: @@ -302,6 +307,7 @@ async def list_lbs_all( "organization_id": organization_id, "project_id": project_id, "tags": tags, + "lb_ids": lb_ids, }, ) @@ -3256,6 +3262,7 @@ async def list_lbs( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> ListLbsResponse: """ List load balancers. @@ -3267,6 +3274,7 @@ async def list_lbs( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`ListLbsResponse ` Usage: @@ -3283,6 +3291,7 @@ async def list_lbs( "GET", f"/lb/v1/regions/{param_region}/lbs", params={ + "lb_ids": lb_ids, "name": name, "order_by": order_by, "organization_id": organization_id @@ -3308,6 +3317,7 @@ async def list_lbs_all( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> list[Lb]: """ List load balancers. @@ -3319,6 +3329,7 @@ async def list_lbs_all( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`list[Lb] ` Usage: @@ -3340,6 +3351,7 @@ async def list_lbs_all( "organization_id": organization_id, "project_id": project_id, "tags": tags, + "lb_ids": lb_ids, }, ) diff --git a/scaleway-async/scaleway_async/lb/v1/types.py b/scaleway-async/scaleway_async/lb/v1/types.py index f99f3741a..1857c9ed1 100644 --- a/scaleway-async/scaleway_async/lb/v1/types.py +++ b/scaleway-async/scaleway_async/lb/v1/types.py @@ -2317,6 +2317,11 @@ class ListLbsRequest: Filter by tag, only Load Balancers with one or more matching tags will be returned. """ + lb_ids: Optional[list[str]] = field(default_factory=list) + """ + Filter by lb_ids, only Load Balancers with these IDs will be returned. + """ + @dataclass class ListLbsResponse: @@ -3899,6 +3904,11 @@ class ZonedApiListLbsRequest: Filter by tag, only Load Balancers with one or more matching tags will be returned. """ + lb_ids: Optional[list[str]] = field(default_factory=list) + """ + Filter by lb_ids, only Load Balancers with these IDs will be returned. + """ + @dataclass class ZonedApiListRoutesRequest: diff --git a/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py b/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py index ef704f715..ac1f970dc 100644 --- a/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py +++ b/scaleway/scaleway/datawarehouse/v1beta1/marshalling.py @@ -161,6 +161,12 @@ def unmarshal_Endpoint(data: Any) -> Endpoint: else: args["services"] = [] + field = data.get("region", None) + if field is not None: + args["region"] = field + else: + args["region"] = None + field = data.get("private_network", None) if field is not None: args["private_network"] = unmarshal_PrivateNetworkDetails(field) @@ -196,6 +202,18 @@ def unmarshal_Database(data: Any) -> Database: else: args["size"] = 0 + field = data.get("deployment_id", None) + if field is not None: + args["deployment_id"] = field + else: + args["deployment_id"] = None + + field = data.get("region", None) + if field is not None: + args["region"] = field + else: + args["region"] = None + return Database(**args) @@ -334,6 +352,18 @@ def unmarshal_User(data: Any) -> User: else: args["is_admin"] = False + field = data.get("deployment_id", None) + if field is not None: + args["deployment_id"] = field + else: + args["deployment_id"] = None + + field = data.get("region", None) + if field is not None: + args["region"] = field + else: + args["region"] = None + return User(**args) diff --git a/scaleway/scaleway/datawarehouse/v1beta1/types.py b/scaleway/scaleway/datawarehouse/v1beta1/types.py index 20cb571ef..c7115e293 100644 --- a/scaleway/scaleway/datawarehouse/v1beta1/types.py +++ b/scaleway/scaleway/datawarehouse/v1beta1/types.py @@ -141,6 +141,11 @@ class Endpoint: List of services associated with the endpoint. """ + region: ScwRegion + """ + Region of the deployment. + """ + private_network: Optional[PrivateNetworkDetails] = None public: Optional[EndpointPublicDetails] = None @@ -165,6 +170,16 @@ class Database: Size of the database. """ + deployment_id: str + """ + Identifier of the deployment. + """ + + region: ScwRegion + """ + Region of the deployment. + """ + @dataclass class Deployment: @@ -304,6 +319,16 @@ class User: Indicates if the user is an administrator. """ + deployment_id: str + """ + Identifier of the deployment. + """ + + region: ScwRegion + """ + Region of the deployment. + """ + @dataclass class Version: diff --git a/scaleway/scaleway/lb/v1/api.py b/scaleway/scaleway/lb/v1/api.py index acc4b25b8..276901659 100644 --- a/scaleway/scaleway/lb/v1/api.py +++ b/scaleway/scaleway/lb/v1/api.py @@ -218,6 +218,7 @@ def list_lbs( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> ListLbsResponse: """ List Load Balancers. @@ -230,6 +231,7 @@ def list_lbs( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`ListLbsResponse ` Usage: @@ -244,6 +246,7 @@ def list_lbs( "GET", f"/lb/v1/zones/{param_zone}/lbs", params={ + "lb_ids": lb_ids, "name": name, "order_by": order_by, "organization_id": organization_id @@ -269,6 +272,7 @@ def list_lbs_all( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> list[Lb]: """ List Load Balancers. @@ -281,6 +285,7 @@ def list_lbs_all( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`list[Lb] ` Usage: @@ -302,6 +307,7 @@ def list_lbs_all( "organization_id": organization_id, "project_id": project_id, "tags": tags, + "lb_ids": lb_ids, }, ) @@ -3254,6 +3260,7 @@ def list_lbs( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> ListLbsResponse: """ List load balancers. @@ -3265,6 +3272,7 @@ def list_lbs( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`ListLbsResponse ` Usage: @@ -3281,6 +3289,7 @@ def list_lbs( "GET", f"/lb/v1/regions/{param_region}/lbs", params={ + "lb_ids": lb_ids, "name": name, "order_by": order_by, "organization_id": organization_id @@ -3306,6 +3315,7 @@ def list_lbs_all( organization_id: Optional[str] = None, project_id: Optional[str] = None, tags: Optional[list[str]] = None, + lb_ids: Optional[list[str]] = None, ) -> list[Lb]: """ List load balancers. @@ -3317,6 +3327,7 @@ def list_lbs_all( :param organization_id: Organization ID to filter for, only Load Balancers from this Organization will be returned. :param project_id: Project ID to filter for, only Load Balancers from this Project will be returned. :param tags: Filter by tag, only Load Balancers with one or more matching tags will be returned. + :param lb_ids: Filter by lb_ids, only Load Balancers with these IDs will be returned. :return: :class:`list[Lb] ` Usage: @@ -3338,6 +3349,7 @@ def list_lbs_all( "organization_id": organization_id, "project_id": project_id, "tags": tags, + "lb_ids": lb_ids, }, ) diff --git a/scaleway/scaleway/lb/v1/types.py b/scaleway/scaleway/lb/v1/types.py index f99f3741a..1857c9ed1 100644 --- a/scaleway/scaleway/lb/v1/types.py +++ b/scaleway/scaleway/lb/v1/types.py @@ -2317,6 +2317,11 @@ class ListLbsRequest: Filter by tag, only Load Balancers with one or more matching tags will be returned. """ + lb_ids: Optional[list[str]] = field(default_factory=list) + """ + Filter by lb_ids, only Load Balancers with these IDs will be returned. + """ + @dataclass class ListLbsResponse: @@ -3899,6 +3904,11 @@ class ZonedApiListLbsRequest: Filter by tag, only Load Balancers with one or more matching tags will be returned. """ + lb_ids: Optional[list[str]] = field(default_factory=list) + """ + Filter by lb_ids, only Load Balancers with these IDs will be returned. + """ + @dataclass class ZonedApiListRoutesRequest: