Skip to content

Commit 84e3861

Browse files
Merge pull request #182 from jdcloud-apigateway/master
pull request
2 parents eea200a + 7cdc5ed commit 84e3861

7 files changed

Lines changed: 1068 additions & 20 deletions

File tree

src/Joygrid/ChangeLog.md

Whitespace-only changes.

src/Joygrid/JoygridClient.php

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?php
2+
/**
3+
* Joygrid
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Joygrid
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\Joygrid;
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 joygrid.
22+
*
23+
* @method \Jdcloud\Result describeCodeInterpreters(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeCodeInterpretersAsync(array $args = [])
25+
* @method \Jdcloud\Result createCodeInterpreter(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise createCodeInterpreterAsync(array $args = [])
27+
* @method \Jdcloud\Result describeCodeInterpreter(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise describeCodeInterpreterAsync(array $args = [])
29+
* @method \Jdcloud\Result updateCodeInterpreter(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise updateCodeInterpreterAsync(array $args = [])
31+
* @method \Jdcloud\Result deleteCodeInterpreter(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise deleteCodeInterpreterAsync(array $args = [])
33+
* @method \Jdcloud\Result describeCodeInterpreterSessions(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise describeCodeInterpreterSessionsAsync(array $args = [])
35+
* @method \Jdcloud\Result startCodeInterpreterSession(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise startCodeInterpreterSessionAsync(array $args = [])
37+
* @method \Jdcloud\Result stopCodeInterpreterSession(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise stopCodeInterpreterSessionAsync(array $args = [])
39+
* @method \Jdcloud\Result invokeCodeInterpreter(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise invokeCodeInterpreterAsync(array $args = [])
41+
* @method \Jdcloud\Result describeMemories(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise describeMemoriesAsync(array $args = [])
43+
* @method \Jdcloud\Result createMemory(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise createMemoryAsync(array $args = [])
45+
* @method \Jdcloud\Result describeMemory(array $args = [])
46+
* @method \GuzzleHttp\Promise\Promise describeMemoryAsync(array $args = [])
47+
* @method \Jdcloud\Result updateMemory(array $args = [])
48+
* @method \GuzzleHttp\Promise\Promise updateMemoryAsync(array $args = [])
49+
* @method \Jdcloud\Result deleteMemory(array $args = [])
50+
* @method \GuzzleHttp\Promise\Promise deleteMemoryAsync(array $args = [])
51+
* @method \Jdcloud\Result describeEvents(array $args = [])
52+
* @method \GuzzleHttp\Promise\Promise describeEventsAsync(array $args = [])
53+
* @method \Jdcloud\Result describeEvent(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise describeEventAsync(array $args = [])
55+
* @method \Jdcloud\Result deleteEvent(array $args = [])
56+
* @method \GuzzleHttp\Promise\Promise deleteEventAsync(array $args = [])
57+
* @method \Jdcloud\Result searchEvents(array $args = [])
58+
* @method \GuzzleHttp\Promise\Promise searchEventsAsync(array $args = [])
59+
* @method \Jdcloud\Result describeRuntimes(array $args = [])
60+
* @method \GuzzleHttp\Promise\Promise describeRuntimesAsync(array $args = [])
61+
* @method \Jdcloud\Result createRuntime(array $args = [])
62+
* @method \GuzzleHttp\Promise\Promise createRuntimeAsync(array $args = [])
63+
* @method \Jdcloud\Result describeRuntime(array $args = [])
64+
* @method \GuzzleHttp\Promise\Promise describeRuntimeAsync(array $args = [])
65+
* @method \Jdcloud\Result updateRuntime(array $args = [])
66+
* @method \GuzzleHttp\Promise\Promise updateRuntimeAsync(array $args = [])
67+
* @method \Jdcloud\Result deleteRuntime(array $args = [])
68+
* @method \GuzzleHttp\Promise\Promise deleteRuntimeAsync(array $args = [])
69+
* @method \Jdcloud\Result invokeRuntime(array $args = [])
70+
* @method \GuzzleHttp\Promise\Promise invokeRuntimeAsync(array $args = [])
71+
*/
72+
class JoygridClient extends JdCloudClient
73+
{
74+
public function __construct(array $args)
75+
{
76+
$args['with_resolved'] = function (array $args) {
77+
$this->getHandlerList()->appendInit(
78+
PresignUrlMiddleware::wrap(
79+
$this,
80+
$args['endpoint_provider'],
81+
[
82+
'operations' => [
83+
],
84+
'service' => 'joygrid',
85+
'presign_param' => 'PresignedUrl',
86+
]
87+
),
88+
'joygrid'
89+
);
90+
};
91+
92+
parent::__construct($args);
93+
}
94+
}

src/Videosurveillance/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ API版本:1.0.0
44
| 发布时间 | 版本号 | 更新| 说明 |
55
|------------|--------|-----|-----------------------------------------------------------------------------|
66
| 2025-09-05 | 1.0.0 | 初始版本发布 |
7+
| 2025-09-13 | 1.0.1 | 1.describeRecordResultByTaskId返回的resultList字段名称更新;<br> 2.增加设备查询接口 |

src/Videosurveillance/VideosurveillanceClient.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
* @method \GuzzleHttp\Promise\Promise captureImageAsync(array $args = [])
2525
* @method \Jdcloud\Result describeCaptureImageByFileId(array $args = [])
2626
* @method \GuzzleHttp\Promise\Promise describeCaptureImageByFileIdAsync(array $args = [])
27+
* @method \Jdcloud\Result describeDeviceInfo(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise describeDeviceInfoAsync(array $args = [])
29+
* @method \Jdcloud\Result describeDevicePageList(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise describeDevicePageListAsync(array $args = [])
2731
* @method \Jdcloud\Result startRecord(array $args = [])
2832
* @method \GuzzleHttp\Promise\Promise startRecordAsync(array $args = [])
2933
* @method \Jdcloud\Result describeRecordResultByTaskId(array $args = [])

0 commit comments

Comments
 (0)