File tree Expand file tree Collapse file tree 4 files changed +0
-72
lines changed
scaleway-async/scaleway_async/tem/v1alpha1
scaleway/scaleway/tem/v1alpha1 Expand file tree Collapse file tree 4 files changed +0
-72
lines changed Original file line number Diff line number Diff line change 7
7
from scaleway_core .api import API
8
8
from scaleway_core .bridge import (
9
9
Region ,
10
- ServiceInfo ,
11
- unmarshal_ServiceInfo ,
12
10
)
13
11
from scaleway_core .utils import (
14
12
WaitForOptions ,
@@ -53,32 +51,6 @@ class TemV1Alpha1API(API):
53
51
Tem.
54
52
"""
55
53
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
-
82
54
async def create_email (
83
55
self ,
84
56
* ,
Original file line number Diff line number Diff line change @@ -345,14 +345,6 @@ class Statistics:
345
345
"""
346
346
347
347
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
-
356
348
@dataclass
357
349
class CreateEmailRequest :
358
350
region : Optional [Region ]
Original file line number Diff line number Diff line change 7
7
from scaleway_core .api import API
8
8
from scaleway_core .bridge import (
9
9
Region ,
10
- ServiceInfo ,
11
- unmarshal_ServiceInfo ,
12
10
)
13
11
from scaleway_core .utils import (
14
12
WaitForOptions ,
@@ -53,32 +51,6 @@ class TemV1Alpha1API(API):
53
51
Tem.
54
52
"""
55
53
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
-
82
54
def create_email (
83
55
self ,
84
56
* ,
Original file line number Diff line number Diff line change @@ -345,14 +345,6 @@ class Statistics:
345
345
"""
346
346
347
347
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
-
356
348
@dataclass
357
349
class CreateEmailRequest :
358
350
region : Optional [Region ]
You can’t perform that action at this time.
0 commit comments