Skip to content

Commit 28d4028

Browse files
committed
Support API KeepaliveIntl.
1 parent 10d1762 commit 28d4028

File tree

5 files changed

+195
-2
lines changed

5 files changed

+195
-2
lines changed

cloudauth-intl-20220809/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2025-07-11 Version: 3.9.0
2+
- Support API KeepaliveIntl.
3+
4+
15
2025-07-10 Version: 3.8.2
26
- Generated python 2022-08-09 for Cloudauth-intl.
37

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.8.2'
1+
__version__ = '3.9.0'

cloudauth-intl-20220809/alibabacloud_cloudauth_intl20220809/client.py

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2636,6 +2636,80 @@ async def initialize_async(
26362636
runtime = util_models.RuntimeOptions()
26372637
return await self.initialize_with_options_async(request, runtime)
26382638

2639+
def keepalive_intl_with_options(
2640+
self,
2641+
runtime: util_models.RuntimeOptions,
2642+
) -> cloudauth_intl_20220809_models.KeepaliveIntlResponse:
2643+
"""
2644+
@summary 客户端连接保持
2645+
2646+
@param request: KeepaliveIntlRequest
2647+
@param runtime: runtime options for this request RuntimeOptions
2648+
@return: KeepaliveIntlResponse
2649+
"""
2650+
req = open_api_models.OpenApiRequest()
2651+
params = open_api_models.Params(
2652+
action='KeepaliveIntl',
2653+
version='2022-08-09',
2654+
protocol='HTTPS',
2655+
pathname='/',
2656+
method='POST',
2657+
auth_type='AK',
2658+
style='RPC',
2659+
req_body_type='formData',
2660+
body_type='json'
2661+
)
2662+
return TeaCore.from_map(
2663+
cloudauth_intl_20220809_models.KeepaliveIntlResponse(),
2664+
self.call_api(params, req, runtime)
2665+
)
2666+
2667+
async def keepalive_intl_with_options_async(
2668+
self,
2669+
runtime: util_models.RuntimeOptions,
2670+
) -> cloudauth_intl_20220809_models.KeepaliveIntlResponse:
2671+
"""
2672+
@summary 客户端连接保持
2673+
2674+
@param request: KeepaliveIntlRequest
2675+
@param runtime: runtime options for this request RuntimeOptions
2676+
@return: KeepaliveIntlResponse
2677+
"""
2678+
req = open_api_models.OpenApiRequest()
2679+
params = open_api_models.Params(
2680+
action='KeepaliveIntl',
2681+
version='2022-08-09',
2682+
protocol='HTTPS',
2683+
pathname='/',
2684+
method='POST',
2685+
auth_type='AK',
2686+
style='RPC',
2687+
req_body_type='formData',
2688+
body_type='json'
2689+
)
2690+
return TeaCore.from_map(
2691+
cloudauth_intl_20220809_models.KeepaliveIntlResponse(),
2692+
await self.call_api_async(params, req, runtime)
2693+
)
2694+
2695+
def keepalive_intl(self) -> cloudauth_intl_20220809_models.KeepaliveIntlResponse:
2696+
"""
2697+
@summary 客户端连接保持
2698+
2699+
@return: KeepaliveIntlResponse
2700+
"""
2701+
runtime = util_models.RuntimeOptions()
2702+
return self.keepalive_intl_with_options(runtime)
2703+
2704+
async def keepalive_intl_async(self) -> cloudauth_intl_20220809_models.KeepaliveIntlResponse:
2705+
"""
2706+
@summary 客户端连接保持
2707+
2708+
@return: KeepaliveIntlResponse
2709+
"""
2710+
runtime = util_models.RuntimeOptions()
2711+
return await self.keepalive_intl_with_options_async(runtime)
2712+
26392713
def mobile_3meta_verify_intl_with_options(
26402714
self,
26412715
request: cloudauth_intl_20220809_models.Mobile3MetaVerifyIntlRequest,

cloudauth-intl-20220809/alibabacloud_cloudauth_intl20220809/models.py

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4091,6 +4091,121 @@ def from_map(self, m: dict = None):
40914091
return self
40924092

40934093

4094+
class KeepaliveIntlResponseBodyResult(TeaModel):
4095+
def __init__(
4096+
self,
4097+
result: str = None,
4098+
):
4099+
self.result = result
4100+
4101+
def validate(self):
4102+
pass
4103+
4104+
def to_map(self):
4105+
_map = super().to_map()
4106+
if _map is not None:
4107+
return _map
4108+
4109+
result = dict()
4110+
if self.result is not None:
4111+
result['Result'] = self.result
4112+
return result
4113+
4114+
def from_map(self, m: dict = None):
4115+
m = m or dict()
4116+
if m.get('Result') is not None:
4117+
self.result = m.get('Result')
4118+
return self
4119+
4120+
4121+
class KeepaliveIntlResponseBody(TeaModel):
4122+
def __init__(
4123+
self,
4124+
code: str = None,
4125+
message: str = None,
4126+
request_id: str = None,
4127+
result: KeepaliveIntlResponseBodyResult = None,
4128+
):
4129+
self.code = code
4130+
self.message = message
4131+
self.request_id = request_id
4132+
self.result = result
4133+
4134+
def validate(self):
4135+
if self.result:
4136+
self.result.validate()
4137+
4138+
def to_map(self):
4139+
_map = super().to_map()
4140+
if _map is not None:
4141+
return _map
4142+
4143+
result = dict()
4144+
if self.code is not None:
4145+
result['Code'] = self.code
4146+
if self.message is not None:
4147+
result['Message'] = self.message
4148+
if self.request_id is not None:
4149+
result['RequestId'] = self.request_id
4150+
if self.result is not None:
4151+
result['Result'] = self.result.to_map()
4152+
return result
4153+
4154+
def from_map(self, m: dict = None):
4155+
m = m or dict()
4156+
if m.get('Code') is not None:
4157+
self.code = m.get('Code')
4158+
if m.get('Message') is not None:
4159+
self.message = m.get('Message')
4160+
if m.get('RequestId') is not None:
4161+
self.request_id = m.get('RequestId')
4162+
if m.get('Result') is not None:
4163+
temp_model = KeepaliveIntlResponseBodyResult()
4164+
self.result = temp_model.from_map(m['Result'])
4165+
return self
4166+
4167+
4168+
class KeepaliveIntlResponse(TeaModel):
4169+
def __init__(
4170+
self,
4171+
headers: Dict[str, str] = None,
4172+
status_code: int = None,
4173+
body: KeepaliveIntlResponseBody = None,
4174+
):
4175+
self.headers = headers
4176+
self.status_code = status_code
4177+
self.body = body
4178+
4179+
def validate(self):
4180+
if self.body:
4181+
self.body.validate()
4182+
4183+
def to_map(self):
4184+
_map = super().to_map()
4185+
if _map is not None:
4186+
return _map
4187+
4188+
result = dict()
4189+
if self.headers is not None:
4190+
result['headers'] = self.headers
4191+
if self.status_code is not None:
4192+
result['statusCode'] = self.status_code
4193+
if self.body is not None:
4194+
result['body'] = self.body.to_map()
4195+
return result
4196+
4197+
def from_map(self, m: dict = None):
4198+
m = m or dict()
4199+
if m.get('headers') is not None:
4200+
self.headers = m.get('headers')
4201+
if m.get('statusCode') is not None:
4202+
self.status_code = m.get('statusCode')
4203+
if m.get('body') is not None:
4204+
temp_model = KeepaliveIntlResponseBody()
4205+
self.body = temp_model.from_map(m['body'])
4206+
return self
4207+
4208+
40944209
class Mobile3MetaVerifyIntlRequest(TeaModel):
40954210
def __init__(
40964211
self,

cloudauth-intl-20220809/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"""
2525
setup module for alibabacloud_cloudauth-intl20220809.
2626
27-
Created on 10/07/2025
27+
Created on 11/07/2025
2828
2929
@author: Alibaba Cloud SDK
3030
"""

0 commit comments

Comments
 (0)