Skip to content

Commit 1aa68c9

Browse files
authored
feat(qaas): add backend_name in Platform (#661)
1 parent 00d9836 commit 1aa68c9

File tree

8 files changed

+434
-8
lines changed

8 files changed

+434
-8
lines changed

scaleway-async/scaleway_async/qaas/v1alpha1/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .types import ListProcessesRequestOrderBy
1212
from .types import ListSessionACLsRequestOrderBy
1313
from .types import ListSessionsRequestOrderBy
14+
from .types import PlatformAvailability
1415
from .types import PlatformTechnology
1516
from .types import PlatformType
1617
from .types import ProcessStatus
@@ -19,6 +20,7 @@
1920
from .types import SessionOriginType
2021
from .types import SessionStatus
2122
from .content import SESSION_TRANSIENT_STATUSES
23+
from .types import PlatformHardware
2224
from .types import JobCircuit
2325
from .types import Application
2426
from .types import JobResult
@@ -75,6 +77,7 @@
7577
"ListProcessesRequestOrderBy",
7678
"ListSessionACLsRequestOrderBy",
7779
"ListSessionsRequestOrderBy",
80+
"PlatformAvailability",
7881
"PlatformTechnology",
7982
"PlatformType",
8083
"ProcessStatus",
@@ -83,6 +86,7 @@
8386
"SessionOriginType",
8487
"SessionStatus",
8588
"SESSION_TRANSIENT_STATUSES",
89+
"PlatformHardware",
8690
"JobCircuit",
8791
"Application",
8892
"JobResult",

scaleway-async/scaleway_async/qaas/v1alpha1/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,7 @@ async def list_platforms(
521521
self,
522522
*,
523523
provider_name: Optional[str] = None,
524+
backend_name: Optional[str] = None,
524525
name: Optional[str] = None,
525526
platform_type: Optional[PlatformType] = None,
526527
platform_technology: Optional[PlatformTechnology] = None,
@@ -532,6 +533,7 @@ async def list_platforms(
532533
List all available platforms.
533534
Retrieve information about all platforms.
534535
:param provider_name: List platforms with this provider name.
536+
:param backend_name: List platforms with this backend name.
535537
:param name: List platforms with this name.
536538
:param platform_type: List platforms with this type.
537539
:param platform_technology: List platforms with this technology.
@@ -550,6 +552,7 @@ async def list_platforms(
550552
"GET",
551553
"/qaas/v1alpha1/platforms",
552554
params={
555+
"backend_name": backend_name,
553556
"name": name,
554557
"order_by": order_by,
555558
"page": page,
@@ -567,6 +570,7 @@ async def list_platforms_all(
567570
self,
568571
*,
569572
provider_name: Optional[str] = None,
573+
backend_name: Optional[str] = None,
570574
name: Optional[str] = None,
571575
platform_type: Optional[PlatformType] = None,
572576
platform_technology: Optional[PlatformTechnology] = None,
@@ -578,6 +582,7 @@ async def list_platforms_all(
578582
List all available platforms.
579583
Retrieve information about all platforms.
580584
:param provider_name: List platforms with this provider name.
585+
:param backend_name: List platforms with this backend name.
581586
:param name: List platforms with this name.
582587
:param platform_type: List platforms with this type.
583588
:param platform_technology: List platforms with this technology.
@@ -598,6 +603,7 @@ async def list_platforms_all(
598603
fetcher=self.list_platforms,
599604
args={
600605
"provider_name": provider_name,
606+
"backend_name": backend_name,
601607
"name": name,
602608
"platform_type": platform_type,
603609
"platform_technology": platform_technology,

0 commit comments

Comments
 (0)