diff --git a/scaleway-async/scaleway_async/tem/v1alpha1/api.py b/scaleway-async/scaleway_async/tem/v1alpha1/api.py index aec0b38b6..990f9a9ba 100644 --- a/scaleway-async/scaleway_async/tem/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/tem/v1alpha1/api.py @@ -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, @@ -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, *, diff --git a/scaleway-async/scaleway_async/tem/v1alpha1/types.py b/scaleway-async/scaleway_async/tem/v1alpha1/types.py index 7bb13e620..1101f0e21 100644 --- a/scaleway-async/scaleway_async/tem/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/tem/v1alpha1/types.py @@ -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] diff --git a/scaleway/scaleway/tem/v1alpha1/api.py b/scaleway/scaleway/tem/v1alpha1/api.py index 80f7dae53..06e5f8a29 100644 --- a/scaleway/scaleway/tem/v1alpha1/api.py +++ b/scaleway/scaleway/tem/v1alpha1/api.py @@ -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, @@ -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, *, diff --git a/scaleway/scaleway/tem/v1alpha1/types.py b/scaleway/scaleway/tem/v1alpha1/types.py index 7bb13e620..1101f0e21 100644 --- a/scaleway/scaleway/tem/v1alpha1/types.py +++ b/scaleway/scaleway/tem/v1alpha1/types.py @@ -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]