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
28 changes: 0 additions & 28 deletions scaleway-async/scaleway_async/tem/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from scaleway_core.api import API
from scaleway_core.bridge import (
Region,
ServiceInfo,
unmarshal_ServiceInfo,
)
from scaleway_core.utils import (
WaitForOptions,
Expand Down Expand Up @@ -53,32 +51,6 @@ class TemV1Alpha1API(API):
Tem.
"""

async def get_service_info(
self,
*,
region: Optional[Region] = None,
) -> Optional[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"/transactional-email/v1alpha1/regions/{param_region}",
)

self._throw_on_error(res)
json = res.json()
return unmarshal_ServiceInfo(json) if json is not None else None

async def create_email(
self,
*,
Expand Down
8 changes: 0 additions & 8 deletions scaleway-async/scaleway_async/tem/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,6 @@ class Statistics:
"""


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


@dataclass
class CreateEmailRequest:
region: Optional[Region]
Expand Down
28 changes: 0 additions & 28 deletions scaleway/scaleway/tem/v1alpha1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
from scaleway_core.api import API
from scaleway_core.bridge import (
Region,
ServiceInfo,
unmarshal_ServiceInfo,
)
from scaleway_core.utils import (
WaitForOptions,
Expand Down Expand Up @@ -53,32 +51,6 @@ class TemV1Alpha1API(API):
Tem.
"""

def get_service_info(
self,
*,
region: Optional[Region] = None,
) -> Optional[ServiceInfo]:
"""

Usage:
::

result = api.get_service_info()
"""

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

res = self._request(
"GET",
f"/transactional-email/v1alpha1/regions/{param_region}",
)

self._throw_on_error(res)
json = res.json()
return unmarshal_ServiceInfo(json) if json is not None else None

def create_email(
self,
*,
Expand Down
8 changes: 0 additions & 8 deletions scaleway/scaleway/tem/v1alpha1/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,6 @@ class Statistics:
"""


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


@dataclass
class CreateEmailRequest:
region: Optional[Region]
Expand Down