From cbf52f44f789503c0a14927450cdec10f851cb83 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 10 Feb 2026 15:15:13 +0000 Subject: [PATCH] feat: update generated APIs --- .../searchdb/v1alpha1/__init__.py | 2 ++ .../scaleway_async/searchdb/v1alpha1/api.py | 34 +++++++++++++++++++ .../scaleway_async/searchdb/v1alpha1/types.py | 9 +++++ .../scaleway/searchdb/v1alpha1/__init__.py | 2 ++ scaleway/scaleway/searchdb/v1alpha1/api.py | 34 +++++++++++++++++++ scaleway/scaleway/searchdb/v1alpha1/types.py | 9 +++++ 6 files changed, 90 insertions(+) diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/__init__.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/__init__.py index e8703e36c..647b2f6f7 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/__init__.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/__init__.py @@ -27,6 +27,7 @@ from .types import DeleteDeploymentRequest from .types import DeleteEndpointRequest from .types import DeleteUserRequest +from .types import GetDeploymentCertificateAuthorityRequest from .types import GetDeploymentRequest from .types import ListDeploymentsRequest from .types import ListDeploymentsResponse @@ -69,6 +70,7 @@ "DeleteDeploymentRequest", "DeleteEndpointRequest", "DeleteUserRequest", + "GetDeploymentCertificateAuthorityRequest", "GetDeploymentRequest", "ListDeploymentsRequest", "ListDeploymentsResponse", diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py index 082f61f14..a19f240a7 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/api.py @@ -6,6 +6,8 @@ from scaleway_core.api import API from scaleway_core.bridge import ( Region as ScwRegion, + ScwFile, + unmarshal_ScwFile, ) from scaleway_core.utils import ( WaitForOptions, @@ -876,3 +878,35 @@ async def delete_user( ) self._throw_on_error(res) + + async def get_deployment_certificate_authority( + self, + *, + deployment_id: str, + region: Optional[ScwRegion] = None, + ) -> ScwFile: + """ + :param deployment_id: + :param region: Region to target. If none is passed will use default region from the config. + :return: :class:`ScwFile ` + + Usage: + :: + + result = await api.get_deployment_certificate_authority( + deployment_id="example", + ) + """ + + param_region = validate_path_param( + "region", region or self.client.default_region + ) + param_deployment_id = validate_path_param("deployment_id", deployment_id) + + res = self._request( + "GET", + f"/searchdb/v1alpha1/regions/{param_region}/deployments/{param_deployment_id}/certificate-authority", + ) + + self._throw_on_error(res) + return unmarshal_ScwFile(res.json()) diff --git a/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py b/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py index eda66d27d..6cb8184c2 100644 --- a/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/searchdb/v1alpha1/types.py @@ -504,6 +504,15 @@ class DeleteUserRequest: """ +@dataclass +class GetDeploymentCertificateAuthorityRequest: + deployment_id: str + region: Optional[ScwRegion] = None + """ + Region to target. If none is passed will use default region from the config. + """ + + @dataclass class GetDeploymentRequest: """ diff --git a/scaleway/scaleway/searchdb/v1alpha1/__init__.py b/scaleway/scaleway/searchdb/v1alpha1/__init__.py index e8703e36c..647b2f6f7 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/__init__.py +++ b/scaleway/scaleway/searchdb/v1alpha1/__init__.py @@ -27,6 +27,7 @@ from .types import DeleteDeploymentRequest from .types import DeleteEndpointRequest from .types import DeleteUserRequest +from .types import GetDeploymentCertificateAuthorityRequest from .types import GetDeploymentRequest from .types import ListDeploymentsRequest from .types import ListDeploymentsResponse @@ -69,6 +70,7 @@ "DeleteDeploymentRequest", "DeleteEndpointRequest", "DeleteUserRequest", + "GetDeploymentCertificateAuthorityRequest", "GetDeploymentRequest", "ListDeploymentsRequest", "ListDeploymentsResponse", diff --git a/scaleway/scaleway/searchdb/v1alpha1/api.py b/scaleway/scaleway/searchdb/v1alpha1/api.py index 5477e5ae3..4d08ec15f 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/api.py +++ b/scaleway/scaleway/searchdb/v1alpha1/api.py @@ -6,6 +6,8 @@ from scaleway_core.api import API from scaleway_core.bridge import ( Region as ScwRegion, + ScwFile, + unmarshal_ScwFile, ) from scaleway_core.utils import ( WaitForOptions, @@ -874,3 +876,35 @@ def delete_user( ) self._throw_on_error(res) + + def get_deployment_certificate_authority( + self, + *, + deployment_id: str, + region: Optional[ScwRegion] = None, + ) -> ScwFile: + """ + :param deployment_id: + :param region: Region to target. If none is passed will use default region from the config. + :return: :class:`ScwFile ` + + Usage: + :: + + result = api.get_deployment_certificate_authority( + deployment_id="example", + ) + """ + + param_region = validate_path_param( + "region", region or self.client.default_region + ) + param_deployment_id = validate_path_param("deployment_id", deployment_id) + + res = self._request( + "GET", + f"/searchdb/v1alpha1/regions/{param_region}/deployments/{param_deployment_id}/certificate-authority", + ) + + self._throw_on_error(res) + return unmarshal_ScwFile(res.json()) diff --git a/scaleway/scaleway/searchdb/v1alpha1/types.py b/scaleway/scaleway/searchdb/v1alpha1/types.py index eda66d27d..6cb8184c2 100644 --- a/scaleway/scaleway/searchdb/v1alpha1/types.py +++ b/scaleway/scaleway/searchdb/v1alpha1/types.py @@ -504,6 +504,15 @@ class DeleteUserRequest: """ +@dataclass +class GetDeploymentCertificateAuthorityRequest: + deployment_id: str + region: Optional[ScwRegion] = None + """ + Region to target. If none is passed will use default region from the config. + """ + + @dataclass class GetDeploymentRequest: """