Skip to content

Commit 4b2ffa2

Browse files
add updates
1 parent 661b067 commit 4b2ffa2

4 files changed

Lines changed: 529 additions & 0 deletions

File tree

src/Assistant/AssistantClient.php

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<?php
2+
/**
3+
* Assistant
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Assistant
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\Assistant;
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 assistant.
22+
*
23+
* @method \Jdcloud\Result describeAssistants(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeAssistantsAsync(array $args = [])
25+
* @method \Jdcloud\Result createCommand(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise createCommandAsync(array $args = [])
27+
* @method \Jdcloud\Result describeCommands(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise describeCommandsAsync(array $args = [])
29+
* @method \Jdcloud\Result modifyCommand(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise modifyCommandAsync(array $args = [])
31+
* @method \Jdcloud\Result deleteCommands(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise deleteCommandsAsync(array $args = [])
33+
* @method \Jdcloud\Result invokeCommand(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise invokeCommandAsync(array $args = [])
35+
* @method \Jdcloud\Result runCommand(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise runCommandAsync(array $args = [])
37+
* @method \Jdcloud\Result describeInvocations(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise describeInvocationsAsync(array $args = [])
39+
* @method \Jdcloud\Result stopInvocation(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise stopInvocationAsync(array $args = [])
41+
* @method \Jdcloud\Result addLogConfig(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise addLogConfigAsync(array $args = [])
43+
* @method \Jdcloud\Result modifyLogConfig(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise modifyLogConfigAsync(array $args = [])
45+
*/
46+
class AssistantClient 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' => 'assistant',
59+
'presign_param' => 'PresignedUrl',
60+
]
61+
),
62+
'assistant'
63+
);
64+
};
65+
66+
parent::__construct($args);
67+
}
68+
}

src/Assistant/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 更新历史 #
2+
API版本:1.0.0
3+
4+
| 发布时间 | 版本号 |更新| 说明 |
5+
|------------|-------|---|----------------------------------------------------------------------------------------------------------------|
6+
| 2023-04-03 | 1.0.0 | 增加接口 | 保存命令、执行命令、停止命令和查询执行结果等。 |

0 commit comments

Comments
 (0)