From 59b7133d3e88a726b9a16173b4adab8131908b5d Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 8 Apr 2026 14:26:46 +0000 Subject: [PATCH] feat: update generated APIs --- scaleway-async/scaleway_async/inference/v1/api.py | 11 +++++++++-- scaleway-async/scaleway_async/inference/v1/types.py | 11 ++++++++--- scaleway/scaleway/inference/v1/api.py | 11 +++++++++-- scaleway/scaleway/inference/v1/types.py | 11 ++++++++--- 4 files changed, 34 insertions(+), 10 deletions(-) diff --git a/scaleway-async/scaleway_async/inference/v1/api.py b/scaleway-async/scaleway_async/inference/v1/api.py index c435fc728..8e9b3db2c 100644 --- a/scaleway-async/scaleway_async/inference/v1/api.py +++ b/scaleway-async/scaleway_async/inference/v1/api.py @@ -260,7 +260,7 @@ async def create_deployment( The terms of the EULA can be retrieved using the `GetModelEula` API call. :param tags: List of tags to apply to the deployment. :param min_size: Defines the minimum size of the pool. - :param max_size: Defines the maximum size of the pool. + :param max_size: Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. :param quantization: Quantization settings to apply to this deployment. :return: :class:`Deployment ` @@ -322,7 +322,7 @@ async def update_deployment( :param name: Name of the deployment. :param tags: List of tags to apply to the deployment. :param min_size: Defines the new minimum size of the pool. - :param max_size: Defines the new maximum size of the pool. + :param max_size: Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. :param model_id: Id of the model to set to the deployment. :param quantization: Quantization to use to the deployment. :return: :class:`Deployment ` @@ -559,6 +559,7 @@ async def list_models( page: Optional[int] = None, page_size: Optional[int] = None, project_id: Optional[str] = None, + organization_id: Optional[str] = None, name: Optional[str] = None, tags: Optional[list[str]] = None, ) -> ListModelsResponse: @@ -570,6 +571,7 @@ async def list_models( :param page: Page number to return. :param page_size: Maximum number of models to return per page. :param project_id: Filter by Project ID. + :param organization_id: Filter by Organization ID. :param name: Filter by model name. :param tags: Filter by tags. :return: :class:`ListModelsResponse ` @@ -590,6 +592,8 @@ async def list_models( params={ "name": name, "order_by": order_by, + "organization_id": organization_id + or self.client.default_organization_id, "page": page, "page_size": page_size or self.client.default_page_size, "project_id": project_id or self.client.default_project_id, @@ -608,6 +612,7 @@ async def list_models_all( page: Optional[int] = None, page_size: Optional[int] = None, project_id: Optional[str] = None, + organization_id: Optional[str] = None, name: Optional[str] = None, tags: Optional[list[str]] = None, ) -> list[Model]: @@ -619,6 +624,7 @@ async def list_models_all( :param page: Page number to return. :param page_size: Maximum number of models to return per page. :param project_id: Filter by Project ID. + :param organization_id: Filter by Organization ID. :param name: Filter by model name. :param tags: Filter by tags. :return: :class:`list[Model] ` @@ -639,6 +645,7 @@ async def list_models_all( "page": page, "page_size": page_size, "project_id": project_id, + "organization_id": organization_id, "name": name, "tags": tags, }, diff --git a/scaleway-async/scaleway_async/inference/v1/types.py b/scaleway-async/scaleway_async/inference/v1/types.py index b8064efbc..b78b69e56 100644 --- a/scaleway-async/scaleway_async/inference/v1/types.py +++ b/scaleway-async/scaleway_async/inference/v1/types.py @@ -220,7 +220,7 @@ class Deployment: max_size: int """ - Defines the maximum size of the pool. + Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. """ model_id: str @@ -445,7 +445,7 @@ class CreateDeploymentRequest: max_size: Optional[int] = 0 """ - Defines the maximum size of the pool. + Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. """ quantization: Optional[DeploymentQuantization] = None @@ -656,6 +656,11 @@ class ListModelsRequest: Filter by Project ID. """ + organization_id: Optional[str] = None + """ + Filter by Organization ID. + """ + name: Optional[str] = None """ Filter by model name. @@ -745,7 +750,7 @@ class UpdateDeploymentRequest: max_size: Optional[int] = 0 """ - Defines the new maximum size of the pool. + Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. """ model_id: Optional[str] = None diff --git a/scaleway/scaleway/inference/v1/api.py b/scaleway/scaleway/inference/v1/api.py index 4ca20cb7a..75626fc27 100644 --- a/scaleway/scaleway/inference/v1/api.py +++ b/scaleway/scaleway/inference/v1/api.py @@ -258,7 +258,7 @@ def create_deployment( The terms of the EULA can be retrieved using the `GetModelEula` API call. :param tags: List of tags to apply to the deployment. :param min_size: Defines the minimum size of the pool. - :param max_size: Defines the maximum size of the pool. + :param max_size: Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. :param quantization: Quantization settings to apply to this deployment. :return: :class:`Deployment ` @@ -320,7 +320,7 @@ def update_deployment( :param name: Name of the deployment. :param tags: List of tags to apply to the deployment. :param min_size: Defines the new minimum size of the pool. - :param max_size: Defines the new maximum size of the pool. + :param max_size: Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. :param model_id: Id of the model to set to the deployment. :param quantization: Quantization to use to the deployment. :return: :class:`Deployment ` @@ -557,6 +557,7 @@ def list_models( page: Optional[int] = None, page_size: Optional[int] = None, project_id: Optional[str] = None, + organization_id: Optional[str] = None, name: Optional[str] = None, tags: Optional[list[str]] = None, ) -> ListModelsResponse: @@ -568,6 +569,7 @@ def list_models( :param page: Page number to return. :param page_size: Maximum number of models to return per page. :param project_id: Filter by Project ID. + :param organization_id: Filter by Organization ID. :param name: Filter by model name. :param tags: Filter by tags. :return: :class:`ListModelsResponse ` @@ -588,6 +590,8 @@ def list_models( params={ "name": name, "order_by": order_by, + "organization_id": organization_id + or self.client.default_organization_id, "page": page, "page_size": page_size or self.client.default_page_size, "project_id": project_id or self.client.default_project_id, @@ -606,6 +610,7 @@ def list_models_all( page: Optional[int] = None, page_size: Optional[int] = None, project_id: Optional[str] = None, + organization_id: Optional[str] = None, name: Optional[str] = None, tags: Optional[list[str]] = None, ) -> list[Model]: @@ -617,6 +622,7 @@ def list_models_all( :param page: Page number to return. :param page_size: Maximum number of models to return per page. :param project_id: Filter by Project ID. + :param organization_id: Filter by Organization ID. :param name: Filter by model name. :param tags: Filter by tags. :return: :class:`list[Model] ` @@ -637,6 +643,7 @@ def list_models_all( "page": page, "page_size": page_size, "project_id": project_id, + "organization_id": organization_id, "name": name, "tags": tags, }, diff --git a/scaleway/scaleway/inference/v1/types.py b/scaleway/scaleway/inference/v1/types.py index b8064efbc..b78b69e56 100644 --- a/scaleway/scaleway/inference/v1/types.py +++ b/scaleway/scaleway/inference/v1/types.py @@ -220,7 +220,7 @@ class Deployment: max_size: int """ - Defines the maximum size of the pool. + Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. """ model_id: str @@ -445,7 +445,7 @@ class CreateDeploymentRequest: max_size: Optional[int] = 0 """ - Defines the maximum size of the pool. + Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. """ quantization: Optional[DeploymentQuantization] = None @@ -656,6 +656,11 @@ class ListModelsRequest: Filter by Project ID. """ + organization_id: Optional[str] = None + """ + Filter by Organization ID. + """ + name: Optional[str] = None """ Filter by model name. @@ -745,7 +750,7 @@ class UpdateDeploymentRequest: max_size: Optional[int] = 0 """ - Defines the new maximum size of the pool. + Defines the maximum size of the pool. Currently, autoscaling is not yet supported, and this value must be equal to `min_size`. """ model_id: Optional[str] = None