Skip to content

Commit

Permalink
feat(qaas): add backend_name in Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
yfodil committed Sep 17, 2024
1 parent 2bd8d23 commit a8c41b8
Show file tree
Hide file tree
Showing 8 changed files with 434 additions and 8 deletions.
4 changes: 4 additions & 0 deletions scaleway-async/scaleway_async/qaas/v1alpha1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .types import ListProcessesRequestOrderBy
from .types import ListSessionACLsRequestOrderBy
from .types import ListSessionsRequestOrderBy
from .types import PlatformAvailability
from .types import PlatformTechnology
from .types import PlatformType
from .types import ProcessStatus
Expand All @@ -19,6 +20,7 @@
from .types import SessionOriginType
from .types import SessionStatus
from .content import SESSION_TRANSIENT_STATUSES
from .types import PlatformHardware
from .types import JobCircuit
from .types import Application
from .types import JobResult
Expand Down Expand Up @@ -75,6 +77,7 @@
"ListProcessesRequestOrderBy",
"ListSessionACLsRequestOrderBy",
"ListSessionsRequestOrderBy",
"PlatformAvailability",
"PlatformTechnology",
"PlatformType",
"ProcessStatus",
Expand All @@ -83,6 +86,7 @@
"SessionOriginType",
"SessionStatus",
"SESSION_TRANSIENT_STATUSES",
"PlatformHardware",
"JobCircuit",
"Application",
"JobResult",
Expand Down
6 changes: 6 additions & 0 deletions scaleway-async/scaleway_async/qaas/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@ async def list_platforms(
self,
*,
provider_name: Optional[str] = None,
backend_name: Optional[str] = None,
name: Optional[str] = None,
platform_type: Optional[PlatformType] = None,
platform_technology: Optional[PlatformTechnology] = None,
Expand All @@ -532,6 +533,7 @@ async def list_platforms(
List all available platforms.
Retrieve information about all platforms.
:param provider_name: List platforms with this provider name.
:param backend_name: List platforms with this backend name.
:param name: List platforms with this name.
:param platform_type: List platforms with this type.
:param platform_technology: List platforms with this technology.
Expand All @@ -550,6 +552,7 @@ async def list_platforms(
"GET",
"/qaas/v1alpha1/platforms",
params={
"backend_name": backend_name,
"name": name,
"order_by": order_by,
"page": page,
Expand All @@ -567,6 +570,7 @@ async def list_platforms_all(
self,
*,
provider_name: Optional[str] = None,
backend_name: Optional[str] = None,
name: Optional[str] = None,
platform_type: Optional[PlatformType] = None,
platform_technology: Optional[PlatformTechnology] = None,
Expand All @@ -578,6 +582,7 @@ async def list_platforms_all(
List all available platforms.
Retrieve information about all platforms.
:param provider_name: List platforms with this provider name.
:param backend_name: List platforms with this backend name.
:param name: List platforms with this name.
:param platform_type: List platforms with this type.
:param platform_technology: List platforms with this technology.
Expand All @@ -598,6 +603,7 @@ async def list_platforms_all(
fetcher=self.list_platforms,
args={
"provider_name": provider_name,
"backend_name": backend_name,
"name": name,
"platform_type": platform_type,
"platform_technology": platform_technology,
Expand Down
Loading

0 comments on commit a8c41b8

Please sign in to comment.