Skip to content

Commit d471435

Browse files
add updates
1 parent e8a9c98 commit d471435

6 files changed

Lines changed: 489 additions & 6 deletions

File tree

src/Aisearch/ChangeLog.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# 更新历史 #
22

3-
API版本:0.1.0
3+
API版本:2.0.0
44

5-
| 发布时间 | 版本号 | 更新 | 说明 |
6-
|------------|-------|-------|------|
7-
| 2025-04-29 | 0.1.0 | MVP版本 | 基础功能 |
8-
|------------|-------|-------|------|
9-
| 2025-12-29 | 0.2.0 | 图片处理 | 基础功能 |
5+
| 发布时间 | 版本号 | 更新 | 说明 |
6+
|------------|-------|----------|----------------|
7+
| 2025-04-29 | 0.1.0 | MVP版本 | 基础功能 |
8+
| 2025-12-29 | 0.2.0 | 图片处理 | 基础功能 |
9+
| 2026-01-28 | 2.0.0 | AI扩图 | 新增长转方无文字&方转长功能 |

src/Cmp/ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 更新历史 #
2+
API版本:1.6.1
3+
4+
| 发布时间 | 版本号 | 更新 | 说明 |
5+
|-----------|-------|------------------|---------------------------------------------------------------------------------------------------------------|
6+
| 2024-11-15 | 0.1.0 | 新增云主机运维策略 | |
7+
| 2025-8-6 | 0.2.0 | 新增云主机所在宿主机下线运维事件 |

src/Cmp/CmpClient.php

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
/**
3+
* Cmp
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Cmp
7+
* @author Jdcloud <jdcloud-api@jd.com>
8+
* @license Apache-2.0 http://www.apache.org/licenses/LICENSE-2.0
9+
* @link https://www.jdcloud.com/help/faq
10+
*/
11+
12+
namespace Jdcloud\Cmp;
13+
14+
use Jdcloud\JdCloudClient;
15+
use Jdcloud\Api\Service;
16+
use Jdcloud\Api\DocModel;
17+
use Jdcloud\Api\ApiProvider;
18+
use Jdcloud\PresignUrlMiddleware;
19+
20+
/**
21+
* Client used to interact with cmp.
22+
*
23+
* @method \Jdcloud\Result describeMaintenancePolicies(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeMaintenancePoliciesAsync(array $args = [])
25+
* @method \Jdcloud\Result createMaintenancePolicy(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise createMaintenancePolicyAsync(array $args = [])
27+
* @method \Jdcloud\Result modifyMaintenancePolicy(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise modifyMaintenancePolicyAsync(array $args = [])
29+
* @method \Jdcloud\Result deleteMaintenancePolicy(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise deleteMaintenancePolicyAsync(array $args = [])
31+
* @method \Jdcloud\Result associateMaintenancePolicy(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise associateMaintenancePolicyAsync(array $args = [])
33+
* @method \Jdcloud\Result disassociateMaintenancePolicy(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise disassociateMaintenancePolicyAsync(array $args = [])
35+
* @method \Jdcloud\Result describeMaintenanceEvents(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise describeMaintenanceEventsAsync(array $args = [])
37+
* @method \Jdcloud\Result createCustomEventsOnResource(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise createCustomEventsOnResourceAsync(array $args = [])
39+
* @method \Jdcloud\Result modifyMaintenanceEvent(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise modifyMaintenanceEventAsync(array $args = [])
41+
* @method \Jdcloud\Result authorizeEvent(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise authorizeEventAsync(array $args = [])
43+
* @method \Jdcloud\Result recommendedInstanceTypes(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise recommendedInstanceTypesAsync(array $args = [])
45+
*/
46+
class CmpClient extends JdCloudClient
47+
{
48+
public function __construct(array $args)
49+
{
50+
$args['with_resolved'] = function (array $args) {
51+
$this->getHandlerList()->appendInit(
52+
PresignUrlMiddleware::wrap(
53+
$this,
54+
$args['endpoint_provider'],
55+
[
56+
'operations' => [
57+
],
58+
'service' => 'cmp',
59+
'presign_param' => 'PresignedUrl',
60+
]
61+
),
62+
'cmp'
63+
);
64+
};
65+
66+
parent::__construct($args);
67+
}
68+
}

src/data/aisearch/v1/api-2.json.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,8 @@
267267
'apiKey' => [ 'type' => 'string', 'locationName' => 'apiKey', ],
268268
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
269269
'imageBase64' => [ 'type' => 'string', 'locationName' => 'imageBase64', ],
270+
'taskType' => [ 'type' => 'integer', 'locationName' => 'taskType', ],
271+
'hwType' => [ 'type' => 'integer', 'locationName' => 'hwType', ],
270272
],
271273
],
272274
'ExternalDownloadImageResponseShape' => [

0 commit comments

Comments
 (0)