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
2 changes: 0 additions & 2 deletions scaleway-async/scaleway_async/container/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
from .types import GetContainerRequest
from .types import GetDomainRequest
from .types import GetNamespaceRequest
from .types import GetServiceInfoRequest
from .types import GetTriggerRequest
from .types import ListContainersRequest
from .types import ListContainersResponse
Expand Down Expand Up @@ -124,7 +123,6 @@
"GetContainerRequest",
"GetDomainRequest",
"GetNamespaceRequest",
"GetServiceInfoRequest",
"GetTriggerRequest",
"ListContainersRequest",
"ListContainersResponse",
Expand Down
29 changes: 0 additions & 29 deletions scaleway-async/scaleway_async/container/v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from scaleway_core.api import API
from scaleway_core.bridge import (
Region as ScwRegion,
ServiceInfo,
unmarshal_ServiceInfo,
)
from scaleway_core.utils import (
WaitForOptions,
Expand Down Expand Up @@ -83,33 +81,6 @@ class ContainerV1API(API):
Easily run containers on the cloud with a single command.
"""

async def get_service_info(
self,
*,
region: Optional[ScwRegion] = None,
) -> ServiceInfo:
"""
:param region: Region to target. If none is passed will use default region from the config.
:return: :class:`ServiceInfo <ServiceInfo>`
Usage:
::
result = await api.get_service_info()
"""

param_region = validate_path_param(
"region", region or self.client.default_region
)

res = self._request(
"GET",
f"/containers/v1/regions/{param_region}",
)

self._throw_on_error(res)
return unmarshal_ServiceInfo(res.json())

async def create_namespace(
self,
*,
Expand Down
8 changes: 0 additions & 8 deletions scaleway-async/scaleway_async/container/v1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -1162,14 +1162,6 @@ class GetNamespaceRequest:
"""


@dataclass
class GetServiceInfoRequest:
region: Optional[ScwRegion] = None
"""
Region to target. If none is passed will use default region from the config.
"""


@dataclass
class GetTriggerRequest:
trigger_id: str
Expand Down
Loading
Loading