Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions scaleway-async/scaleway_async/mongodb/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@
from .content import SNAPSHOT_TRANSIENT_STATUSES
from .types import UserRoleRole
from .types import VolumeType
from .types import EndpointPrivateNetworkDetails
from .types import EndpointPublicNetworkDetails
from .types import EngineUpgrade
from .types import ServiceUpdate
from .types import EndpointPrivateNetworkDetails
from .types import EndpointPublicNetworkDetails
from .types import Workflow
from .types import EndpointSpecPrivateNetworkDetails
from .types import EndpointSpecPublicNetworkDetails
from .types import Endpoint
from .types import InstanceSetting
from .types import InstanceSnapshotSchedule
from .types import Maintenance
from .types import Volume
from .types import Workflow
from .types import NodeTypeVolumeType
from .types import UserRole
from .types import EndpointSpec
from .types import Database
from .types import Instance
from .types import Maintenance
from .types import NodeType
from .types import Snapshot
from .types import User
Expand Down Expand Up @@ -87,23 +87,23 @@
"SNAPSHOT_TRANSIENT_STATUSES",
"UserRoleRole",
"VolumeType",
"EndpointPrivateNetworkDetails",
"EndpointPublicNetworkDetails",
"EngineUpgrade",
"ServiceUpdate",
"EndpointPrivateNetworkDetails",
"EndpointPublicNetworkDetails",
"Workflow",
"EndpointSpecPrivateNetworkDetails",
"EndpointSpecPublicNetworkDetails",
"Endpoint",
"InstanceSetting",
"InstanceSnapshotSchedule",
"Maintenance",
"Volume",
"Workflow",
"NodeTypeVolumeType",
"UserRole",
"EndpointSpec",
"Database",
"Instance",
"Maintenance",
"NodeType",
"Snapshot",
"User",
Expand Down
8 changes: 7 additions & 1 deletion scaleway-async/scaleway_async/mongodb/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
)
from .marshalling import (
unmarshal_Endpoint,
unmarshal_Instance,
unmarshal_Maintenance,
unmarshal_Instance,
unmarshal_Snapshot,
unmarshal_User,
unmarshal_ListDatabasesResponse,
Expand Down Expand Up @@ -244,6 +244,7 @@ async def list_instances(
order_by: Optional[ListInstancesRequestOrderBy] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
has_maintenance: Optional[bool] = None,
page: Optional[int] = None,
page_size: Optional[int] = None,
) -> ListInstancesResponse:
Expand All @@ -256,6 +257,7 @@ async def list_instances(
:param order_by: Criteria to use when ordering Database Instance listings.
:param organization_id: Organization ID of the Database Instance.
:param project_id: Project ID to list the instances of.
:param has_maintenance: Retrieve pending maintenances for the database instances if given.
:param page:
:param page_size:
:return: :class:`ListInstancesResponse <ListInstancesResponse>`
Expand All @@ -274,6 +276,7 @@ async def list_instances(
"GET",
f"/mongodb/v1/regions/{param_region}/instances",
params={
"has_maintenance": has_maintenance,
"name": name,
"order_by": order_by,
"organization_id": organization_id
Expand All @@ -297,6 +300,7 @@ async def list_instances_all(
order_by: Optional[ListInstancesRequestOrderBy] = None,
organization_id: Optional[str] = None,
project_id: Optional[str] = None,
has_maintenance: Optional[bool] = None,
page: Optional[int] = None,
page_size: Optional[int] = None,
) -> list[Instance]:
Expand All @@ -309,6 +313,7 @@ async def list_instances_all(
:param order_by: Criteria to use when ordering Database Instance listings.
:param organization_id: Organization ID of the Database Instance.
:param project_id: Project ID to list the instances of.
:param has_maintenance: Retrieve pending maintenances for the database instances if given.
:param page:
:param page_size:
:return: :class:`list[Instance] <list[Instance]>`
Expand All @@ -330,6 +335,7 @@ async def list_instances_all(
"order_by": order_by,
"organization_id": organization_id,
"project_id": project_id,
"has_maintenance": has_maintenance,
"page": page,
"page_size": page_size,
},
Expand Down
Loading
Loading