Skip to content

Commit abfee16

Browse files
committed
Support API KeepaliveIntl.
1 parent 2a76bd1 commit abfee16

File tree

5 files changed

+283
-0
lines changed

5 files changed

+283
-0
lines changed

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 php 2022-08-09 for Cloudauth-intl.
37

src/Cloudauthintl.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeRequest;
5050
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeResponse;
5151
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\InitializeShrinkRequest;
52+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\KeepaliveIntlResponse;
5253
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile3MetaVerifyIntlRequest;
5354
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\Mobile3MetaVerifyIntlResponse;
5455
use Darabonba\OpenApi\Exceptions\ClientException;
@@ -1851,6 +1852,50 @@ public function initialize($request)
18511852
return $this->initializeWithOptions($request, $runtime);
18521853
}
18531854

1855+
/**
1856+
* 客户端连接保持
1857+
*
1858+
* @param Request - KeepaliveIntlRequest
1859+
* @param runtime - runtime options for this request RuntimeOptions
1860+
*
1861+
* @returns KeepaliveIntlResponse
1862+
*
1863+
* @param RuntimeOptions $runtime
1864+
*
1865+
* @return KeepaliveIntlResponse
1866+
*/
1867+
public function keepaliveIntlWithOptions($runtime)
1868+
{
1869+
$req = new OpenApiRequest([]);
1870+
$params = new Params([
1871+
'action' => 'KeepaliveIntl',
1872+
'version' => '2022-08-09',
1873+
'protocol' => 'HTTPS',
1874+
'pathname' => '/',
1875+
'method' => 'POST',
1876+
'authType' => 'AK',
1877+
'style' => 'RPC',
1878+
'reqBodyType' => 'formData',
1879+
'bodyType' => 'json',
1880+
]);
1881+
1882+
return KeepaliveIntlResponse::fromMap($this->callApi($params, $req, $runtime));
1883+
}
1884+
1885+
/**
1886+
* 客户端连接保持
1887+
*
1888+
* @returns KeepaliveIntlResponse
1889+
*
1890+
* @return KeepaliveIntlResponse
1891+
*/
1892+
public function keepaliveIntl()
1893+
{
1894+
$runtime = new RuntimeOptions([]);
1895+
1896+
return $this->keepaliveIntlWithOptions($runtime);
1897+
}
1898+
18541899
/**
18551900
* 手机号三要素国际版接口.
18561901
*
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\Cloudauthintl\V20220809\Models;
6+
7+
use AlibabaCloud\Dara\Model;
8+
9+
class KeepaliveIntlResponse extends Model
10+
{
11+
/**
12+
* @var string[]
13+
*/
14+
public $headers;
15+
16+
/**
17+
* @var int
18+
*/
19+
public $statusCode;
20+
21+
/**
22+
* @var KeepaliveIntlResponseBody
23+
*/
24+
public $body;
25+
protected $_name = [
26+
'headers' => 'headers',
27+
'statusCode' => 'statusCode',
28+
'body' => 'body',
29+
];
30+
31+
public function validate()
32+
{
33+
if (\is_array($this->headers)) {
34+
Model::validateArray($this->headers);
35+
}
36+
if (null !== $this->body) {
37+
$this->body->validate();
38+
}
39+
parent::validate();
40+
}
41+
42+
public function toArray($noStream = false)
43+
{
44+
$res = [];
45+
if (null !== $this->headers) {
46+
if (\is_array($this->headers)) {
47+
$res['headers'] = [];
48+
foreach ($this->headers as $key1 => $value1) {
49+
$res['headers'][$key1] = $value1;
50+
}
51+
}
52+
}
53+
54+
if (null !== $this->statusCode) {
55+
$res['statusCode'] = $this->statusCode;
56+
}
57+
58+
if (null !== $this->body) {
59+
$res['body'] = null !== $this->body ? $this->body->toArray($noStream) : $this->body;
60+
}
61+
62+
return $res;
63+
}
64+
65+
public function toMap($noStream = false)
66+
{
67+
return $this->toArray($noStream);
68+
}
69+
70+
public static function fromMap($map = [])
71+
{
72+
$model = new self();
73+
if (isset($map['headers'])) {
74+
if (!empty($map['headers'])) {
75+
$model->headers = [];
76+
foreach ($map['headers'] as $key1 => $value1) {
77+
$model->headers[$key1] = $value1;
78+
}
79+
}
80+
}
81+
82+
if (isset($map['statusCode'])) {
83+
$model->statusCode = $map['statusCode'];
84+
}
85+
86+
if (isset($map['body'])) {
87+
$model->body = KeepaliveIntlResponseBody::fromMap($map['body']);
88+
}
89+
90+
return $model;
91+
}
92+
}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\Cloudauthintl\V20220809\Models;
6+
7+
use AlibabaCloud\Dara\Model;
8+
use AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\KeepaliveIntlResponseBody\result;
9+
10+
class KeepaliveIntlResponseBody extends Model
11+
{
12+
/**
13+
* @var string
14+
*/
15+
public $code;
16+
17+
/**
18+
* @var string
19+
*/
20+
public $message;
21+
22+
/**
23+
* @var string
24+
*/
25+
public $requestId;
26+
27+
/**
28+
* @var result
29+
*/
30+
public $result;
31+
protected $_name = [
32+
'code' => 'Code',
33+
'message' => 'Message',
34+
'requestId' => 'RequestId',
35+
'result' => 'Result',
36+
];
37+
38+
public function validate()
39+
{
40+
if (null !== $this->result) {
41+
$this->result->validate();
42+
}
43+
parent::validate();
44+
}
45+
46+
public function toArray($noStream = false)
47+
{
48+
$res = [];
49+
if (null !== $this->code) {
50+
$res['Code'] = $this->code;
51+
}
52+
53+
if (null !== $this->message) {
54+
$res['Message'] = $this->message;
55+
}
56+
57+
if (null !== $this->requestId) {
58+
$res['RequestId'] = $this->requestId;
59+
}
60+
61+
if (null !== $this->result) {
62+
$res['Result'] = null !== $this->result ? $this->result->toArray($noStream) : $this->result;
63+
}
64+
65+
return $res;
66+
}
67+
68+
public function toMap($noStream = false)
69+
{
70+
return $this->toArray($noStream);
71+
}
72+
73+
public static function fromMap($map = [])
74+
{
75+
$model = new self();
76+
if (isset($map['Code'])) {
77+
$model->code = $map['Code'];
78+
}
79+
80+
if (isset($map['Message'])) {
81+
$model->message = $map['Message'];
82+
}
83+
84+
if (isset($map['RequestId'])) {
85+
$model->requestId = $map['RequestId'];
86+
}
87+
88+
if (isset($map['Result'])) {
89+
$model->result = result::fromMap($map['Result']);
90+
}
91+
92+
return $model;
93+
}
94+
}
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
3+
// This file is auto-generated, don't edit it. Thanks.
4+
5+
namespace AlibabaCloud\SDK\Cloudauthintl\V20220809\Models\KeepaliveIntlResponseBody;
6+
7+
use AlibabaCloud\Dara\Model;
8+
9+
class result extends Model
10+
{
11+
/**
12+
* @var string
13+
*/
14+
public $result;
15+
protected $_name = [
16+
'result' => 'Result',
17+
];
18+
19+
public function validate()
20+
{
21+
parent::validate();
22+
}
23+
24+
public function toArray($noStream = false)
25+
{
26+
$res = [];
27+
if (null !== $this->result) {
28+
$res['Result'] = $this->result;
29+
}
30+
31+
return $res;
32+
}
33+
34+
public function toMap($noStream = false)
35+
{
36+
return $this->toArray($noStream);
37+
}
38+
39+
public static function fromMap($map = [])
40+
{
41+
$model = new self();
42+
if (isset($map['Result'])) {
43+
$model->result = $map['Result'];
44+
}
45+
46+
return $model;
47+
}
48+
}

0 commit comments

Comments
 (0)