110110 ScalewayQaasV1Alpha1Session ,
111111 ScalewayQaasV1Alpha1SessionAccess ,
112112 TerminateSessionBody ,
113+ ListPlatformsPlatformType ,
114+ ListPlatformsPlatformTechnology ,
115+ )
116+ from scaleway_qaas_client .v1alpha1 .quantum_as_a_service_api_client .types import (
117+ Response ,
118+ UNSET ,
113119)
114- from scaleway_qaas_client .v1alpha1 .quantum_as_a_service_api_client .types import Response
115120
116121_DEFAULT_URL = "https://api.scaleway.com"
117122
@@ -180,6 +185,8 @@ def list_platforms(
180185 name : Optional [str ] = None ,
181186 backend_name : Optional [str ] = None ,
182187 provider_name : Optional [str ] = None ,
188+ platform_type : Optional [str ] = None ,
189+ platform_technology : Optional [str ] = None ,
183190 ) -> List [ScalewayQaasV1Alpha1Platform ]:
184191 """List all available platforms
185192
@@ -189,6 +196,8 @@ def list_platforms(
189196 provider_name (Union[Unset, str]): List platforms with this provider name.
190197 backend_name (Union[Unset, str]): List platforms with this backend name.
191198 name (Union[Unset, str]): List platforms with this name.
199+ platform_type (Union[Unset, ListPlatformsPlatformType]): List platforms with this type.
200+ platform_technology (Union[Unset, ListPlatformsPlatformTechnology]): List platforms with this technology.
192201
193202 Raises:
194203 errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -198,11 +207,23 @@ def list_platforms(
198207 List[ScalewayQaasV1Alpha1ListPlatforms]
199208 """
200209
210+ if isinstance (platform_technology , str ):
211+ platform_technology = ListPlatformsPlatformTechnology [platform_technology ]
212+ elif not platform_technology :
213+ platform_technology = UNSET
214+
215+ if isinstance (platform_type , str ):
216+ platform_type = ListPlatformsPlatformType [platform_type ]
217+ elif not platform_type :
218+ platform_type = UNSET
219+
201220 response = _list_platforms_sync (
202221 client = self .__client ,
203222 name = name ,
204223 provider_name = provider_name ,
205224 backend_name = backend_name ,
225+ platform_type = platform_type ,
226+ platform_technology = platform_technology ,
206227 )
207228
208229 _raise_on_error (response )
0 commit comments