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 77from scaleway_core .api import API
88from scaleway_core .bridge import (
99 Region ,
10- ServiceInfo ,
11- unmarshal_ServiceInfo ,
1210)
1311from 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 * ,
Original file line number Diff line number Diff 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
357349class CreateEmailRequest :
358350 region : Optional [Region ]
Original file line number Diff line number Diff line change 77from scaleway_core .api import API
88from scaleway_core .bridge import (
99 Region ,
10- ServiceInfo ,
11- unmarshal_ServiceInfo ,
1210)
1311from 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 * ,
Original file line number Diff line number Diff 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
357349class CreateEmailRequest :
358350 region : Optional [Region ]
You can’t perform that action at this time.
0 commit comments