Skip to content

Commit 8b72a64

Browse files
authored
fix(tem): exclude GetServiceInfo (#26)
1 parent b6cc7b9 commit 8b72a64

File tree

4 files changed

+0
-72
lines changed

4 files changed

+0
-72
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from scaleway_core.api import API
88
from scaleway_core.bridge import (
99
Region,
10-
ServiceInfo,
11-
unmarshal_ServiceInfo,
1210
)
1311
from scaleway_core.utils import (
1412
WaitForOptions,
@@ -53,32 +51,6 @@ class TemV1Alpha1API(API):
5351
Tem.
5452
"""
5553

56-
async def get_service_info(
57-
self,
58-
*,
59-
region: Optional[Region] = None,
60-
) -> Optional[ServiceInfo]:
61-
"""
62-
63-
Usage:
64-
::
65-
66-
result = await api.get_service_info()
67-
"""
68-
69-
param_region = validate_path_param(
70-
"region", region or self.client.default_region
71-
)
72-
73-
res = self._request(
74-
"GET",
75-
f"/transactional-email/v1alpha1/regions/{param_region}",
76-
)
77-
78-
self._throw_on_error(res)
79-
json = res.json()
80-
return unmarshal_ServiceInfo(json) if json is not None else None
81-
8254
async def create_email(
8355
self,
8456
*,

scaleway-async/scaleway_async/tem/v1alpha1/types.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,6 @@ class Statistics:
345345
"""
346346

347347

348-
@dataclass
349-
class GetServiceInfoRequest:
350-
region: Optional[Region]
351-
"""
352-
Region to target. If none is passed will use default region from the config
353-
"""
354-
355-
356348
@dataclass
357349
class CreateEmailRequest:
358350
region: Optional[Region]

scaleway/scaleway/tem/v1alpha1/api.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
from scaleway_core.api import API
88
from scaleway_core.bridge import (
99
Region,
10-
ServiceInfo,
11-
unmarshal_ServiceInfo,
1210
)
1311
from scaleway_core.utils import (
1412
WaitForOptions,
@@ -53,32 +51,6 @@ class TemV1Alpha1API(API):
5351
Tem.
5452
"""
5553

56-
def get_service_info(
57-
self,
58-
*,
59-
region: Optional[Region] = None,
60-
) -> Optional[ServiceInfo]:
61-
"""
62-
63-
Usage:
64-
::
65-
66-
result = api.get_service_info()
67-
"""
68-
69-
param_region = validate_path_param(
70-
"region", region or self.client.default_region
71-
)
72-
73-
res = self._request(
74-
"GET",
75-
f"/transactional-email/v1alpha1/regions/{param_region}",
76-
)
77-
78-
self._throw_on_error(res)
79-
json = res.json()
80-
return unmarshal_ServiceInfo(json) if json is not None else None
81-
8254
def create_email(
8355
self,
8456
*,

scaleway/scaleway/tem/v1alpha1/types.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,6 @@ class Statistics:
345345
"""
346346

347347

348-
@dataclass
349-
class GetServiceInfoRequest:
350-
region: Optional[Region]
351-
"""
352-
Region to target. If none is passed will use default region from the config
353-
"""
354-
355-
356348
@dataclass
357349
class CreateEmailRequest:
358350
region: Optional[Region]

0 commit comments

Comments
 (0)