Skip to content

Commit 2099c4d

Browse files
Merge pull request #192 from jdcloud-apigateway/master
add updates
2 parents 927ef19 + c921d0a commit 2099c4d

6 files changed

Lines changed: 1703 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
/**
3+
* Conversationalai
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Conversationalai
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\Conversationalai;
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 conversationalai.
22+
*
23+
* @method \Jdcloud\Result queryConvoAgentStatus(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise queryConvoAgentStatusAsync(array $args = [])
25+
* @method \Jdcloud\Result queryConvoAgentList(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise queryConvoAgentListAsync(array $args = [])
27+
*/
28+
class ConversationalaiClient extends JdCloudClient
29+
{
30+
public function __construct(array $args)
31+
{
32+
$args['with_resolved'] = function (array $args) {
33+
$this->getHandlerList()->appendInit(
34+
PresignUrlMiddleware::wrap(
35+
$this,
36+
$args['endpoint_provider'],
37+
[
38+
'operations' => [
39+
],
40+
'service' => 'conversationalai',
41+
'presign_param' => 'PresignedUrl',
42+
]
43+
),
44+
'conversationalai'
45+
);
46+
};
47+
48+
parent::__construct($args);
49+
}
50+
}

src/Hpc/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 更新历史 #
2+
API版本:0.0.1
3+
4+
| 发布时间 | 版本号 | 更新 | 说明 |
5+
|------------|-------|------|---------------------------------------------------------------------------------------------------------------|
6+
| 2025-02-21 | 0.0.1 | 初始化 | -

src/Hpc/HpcClient.php

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?php
2+
/**
3+
* Hpc
4+
*
5+
* @category Jdcloud
6+
* @package Jdcloud\Hpc
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\Hpc;
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 hpc.
22+
*
23+
* @method \Jdcloud\Result describeDiagnosticResults(array $args = [])
24+
* @method \GuzzleHttp\Promise\Promise describeDiagnosticResultsAsync(array $args = [])
25+
* @method \Jdcloud\Result createDiagnosticTask(array $args = [])
26+
* @method \GuzzleHttp\Promise\Promise createDiagnosticTaskAsync(array $args = [])
27+
* @method \Jdcloud\Result describeDiagnosticResult(array $args = [])
28+
* @method \GuzzleHttp\Promise\Promise describeDiagnosticResultAsync(array $args = [])
29+
* @method \Jdcloud\Result describeInstanceTypes(array $args = [])
30+
* @method \GuzzleHttp\Promise\Promise describeInstanceTypesAsync(array $args = [])
31+
* @method \Jdcloud\Result describeInstances(array $args = [])
32+
* @method \GuzzleHttp\Promise\Promise describeInstancesAsync(array $args = [])
33+
* @method \Jdcloud\Result createInstances(array $args = [])
34+
* @method \GuzzleHttp\Promise\Promise createInstancesAsync(array $args = [])
35+
* @method \Jdcloud\Result describeInstance(array $args = [])
36+
* @method \GuzzleHttp\Promise\Promise describeInstanceAsync(array $args = [])
37+
* @method \Jdcloud\Result startInstance(array $args = [])
38+
* @method \GuzzleHttp\Promise\Promise startInstanceAsync(array $args = [])
39+
* @method \Jdcloud\Result stopInstance(array $args = [])
40+
* @method \GuzzleHttp\Promise\Promise stopInstanceAsync(array $args = [])
41+
* @method \Jdcloud\Result rebootInstance(array $args = [])
42+
* @method \GuzzleHttp\Promise\Promise rebootInstanceAsync(array $args = [])
43+
* @method \Jdcloud\Result rebuildInstance(array $args = [])
44+
* @method \GuzzleHttp\Promise\Promise rebuildInstanceAsync(array $args = [])
45+
* @method \Jdcloud\Result recoverInstance(array $args = [])
46+
* @method \GuzzleHttp\Promise\Promise recoverInstanceAsync(array $args = [])
47+
* @method \Jdcloud\Result modifyInstancePassword(array $args = [])
48+
* @method \GuzzleHttp\Promise\Promise modifyInstancePasswordAsync(array $args = [])
49+
* @method \Jdcloud\Result associateElasticIp(array $args = [])
50+
* @method \GuzzleHttp\Promise\Promise associateElasticIpAsync(array $args = [])
51+
* @method \Jdcloud\Result disassociateElasticIp(array $args = [])
52+
* @method \GuzzleHttp\Promise\Promise disassociateElasticIpAsync(array $args = [])
53+
* @method \Jdcloud\Result modifyInstanceAttribute(array $args = [])
54+
* @method \GuzzleHttp\Promise\Promise modifyInstanceAttributeAsync(array $args = [])
55+
* @method \Jdcloud\Result describeChargeDuration(array $args = [])
56+
* @method \GuzzleHttp\Promise\Promise describeChargeDurationAsync(array $args = [])
57+
* @method \Jdcloud\Result exportInstancesData(array $args = [])
58+
* @method \GuzzleHttp\Promise\Promise exportInstancesDataAsync(array $args = [])
59+
* @method \Jdcloud\Result describeNetworkTopology(array $args = [])
60+
* @method \GuzzleHttp\Promise\Promise describeNetworkTopologyAsync(array $args = [])
61+
* @method \Jdcloud\Result describeNetworkRelationship(array $args = [])
62+
* @method \GuzzleHttp\Promise\Promise describeNetworkRelationshipAsync(array $args = [])
63+
* @method \Jdcloud\Result describeCommunicationRange(array $args = [])
64+
* @method \GuzzleHttp\Promise\Promise describeCommunicationRangeAsync(array $args = [])
65+
* @method \Jdcloud\Result deleteCluster(array $args = [])
66+
* @method \GuzzleHttp\Promise\Promise deleteClusterAsync(array $args = [])
67+
* @method \Jdcloud\Result modifyCluster(array $args = [])
68+
* @method \GuzzleHttp\Promise\Promise modifyClusterAsync(array $args = [])
69+
* @method \Jdcloud\Result createCluster(array $args = [])
70+
* @method \GuzzleHttp\Promise\Promise createClusterAsync(array $args = [])
71+
* @method \Jdcloud\Result describePackages(array $args = [])
72+
* @method \GuzzleHttp\Promise\Promise describePackagesAsync(array $args = [])
73+
* @method \Jdcloud\Result describePackage(array $args = [])
74+
* @method \GuzzleHttp\Promise\Promise describePackageAsync(array $args = [])
75+
* @method \Jdcloud\Result taskFinished(array $args = [])
76+
* @method \GuzzleHttp\Promise\Promise taskFinishedAsync(array $args = [])
77+
* @method \Jdcloud\Result taskHeartbeat(array $args = [])
78+
* @method \GuzzleHttp\Promise\Promise taskHeartbeatAsync(array $args = [])
79+
* @method \Jdcloud\Result describeTasks(array $args = [])
80+
* @method \GuzzleHttp\Promise\Promise describeTasksAsync(array $args = [])
81+
* @method \Jdcloud\Result describeQuota(array $args = [])
82+
* @method \GuzzleHttp\Promise\Promise describeQuotaAsync(array $args = [])
83+
* @method \Jdcloud\Result describeAvailableClusters(array $args = [])
84+
* @method \GuzzleHttp\Promise\Promise describeAvailableClustersAsync(array $args = [])
85+
* @method \Jdcloud\Result eventRemoteWrite(array $args = [])
86+
* @method \GuzzleHttp\Promise\Promise eventRemoteWriteAsync(array $args = [])
87+
*/
88+
class HpcClient extends JdCloudClient
89+
{
90+
public function __construct(array $args)
91+
{
92+
$args['with_resolved'] = function (array $args) {
93+
$this->getHandlerList()->appendInit(
94+
PresignUrlMiddleware::wrap(
95+
$this,
96+
$args['endpoint_provider'],
97+
[
98+
'operations' => [
99+
],
100+
'service' => 'hpc',
101+
'presign_param' => 'PresignedUrl',
102+
]
103+
),
104+
'hpc'
105+
);
106+
};
107+
108+
parent::__construct($args);
109+
}
110+
}
Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
<?php
2+
// This file was auto-generated
3+
return [
4+
// 'version' => '',
5+
'metadata' =>
6+
[
7+
// 'apiVersion' => '',
8+
// 'endpointPrefix' => 'conversationalai',
9+
'protocol' => 'json',
10+
// 'serviceFullName' => 'conversationalai',
11+
// 'serviceId' => 'conversationalai',
12+
],
13+
'operations' => [
14+
'QueryConvoAgentStatus' => [
15+
'name' => 'QueryConvoAgentStatus',
16+
'http' => [
17+
'method' => 'GET',
18+
'requestUri' => '/v1/queryConvoAgentStatus',
19+
],
20+
'input' => [ 'shape' => 'QueryConvoAgentStatusRequestShape', ],
21+
'output' => [ 'shape' => 'QueryConvoAgentStatusResponseShape', ],
22+
],
23+
'QueryConvoAgentList' => [
24+
'name' => 'QueryConvoAgentList',
25+
'http' => [
26+
'method' => 'GET',
27+
'requestUri' => '/v1/queryConvoAgentList',
28+
],
29+
'input' => [ 'shape' => 'QueryConvoAgentListRequestShape', ],
30+
'output' => [ 'shape' => 'QueryConvoAgentListResponseShape', ],
31+
],
32+
],
33+
'shapes' => [
34+
'Filter' => [
35+
'type' => 'structure',
36+
'members' => [
37+
'name' => [ 'type' => 'string', 'locationName' => 'name', ],
38+
'operator' => [ 'type' => 'string', 'locationName' => 'operator', ],
39+
'values' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
40+
],
41+
],
42+
'AgentJoinRoomParams' => [
43+
'type' => 'structure',
44+
'members' => [
45+
'appId' => [ 'type' => 'string', 'locationName' => 'appId', ],
46+
'userRoomId' => [ 'type' => 'string', 'locationName' => 'userRoomId', ],
47+
'userId' => [ 'type' => 'string', 'locationName' => 'userId', ],
48+
'timestamp' => [ 'type' => 'long', 'locationName' => 'timestamp', ],
49+
'nonce' => [ 'type' => 'string', 'locationName' => 'nonce', ],
50+
'token' => [ 'type' => 'string', 'locationName' => 'token', ],
51+
],
52+
],
53+
'SilenceParams' => [
54+
'type' => 'structure',
55+
'members' => [
56+
'silentDurationThreshold' => [ 'type' => 'integer', 'locationName' => 'silentDurationThreshold', ],
57+
'action' => [ 'type' => 'string', 'locationName' => 'action', ],
58+
'content' => [ 'type' => 'string', 'locationName' => 'content', ],
59+
],
60+
],
61+
'QueryConvoAgentListContent' => [
62+
'type' => 'structure',
63+
'members' => [
64+
'pageNumber' => [ 'type' => 'integer', 'locationName' => 'pageNumber', ],
65+
'pageSize' => [ 'type' => 'integer', 'locationName' => 'pageSize', ],
66+
'totalElements' => [ 'type' => 'integer', 'locationName' => 'totalElements', ],
67+
'totalPages' => [ 'type' => 'integer', 'locationName' => 'totalPages', ],
68+
'content' => [ 'type' => 'list', 'member' => [ 'shape' => 'ConvoAgentStatusInfo', ], ],
69+
],
70+
],
71+
'SpeakCustomeText' => [
72+
'type' => 'structure',
73+
'members' => [
74+
'priority' => [ 'type' => 'string', 'locationName' => 'priority', ],
75+
'content' => [ 'type' => 'string', 'locationName' => 'content', ],
76+
],
77+
],
78+
'VadParams' => [
79+
'type' => 'structure',
80+
'members' => [
81+
'volumeDb' => [ 'type' => 'integer', 'locationName' => 'volumeDb', ],
82+
'paddingMs' => [ 'type' => 'integer', 'locationName' => 'paddingMs', ],
83+
'silenceDurationMs' => [ 'type' => 'integer', 'locationName' => 'silenceDurationMs', ],
84+
'threshold' => [ 'type' => 'float', 'locationName' => 'threshold', ],
85+
],
86+
],
87+
'StopConvoAgent' => [
88+
'type' => 'structure',
89+
'members' => [
90+
'appId' => [ 'type' => 'string', 'locationName' => 'appId', ],
91+
'agentId' => [ 'type' => 'string', 'locationName' => 'agentId', ],
92+
],
93+
],
94+
'StartConvoAgent' => [
95+
'type' => 'structure',
96+
'members' => [
97+
'agentName' => [ 'type' => 'string', 'locationName' => 'agentName', ],
98+
'agentJoinRoomParams' => [ 'shape' => 'AgentJoinRoomParams', ],
99+
'greetingMessage' => [ 'type' => 'string', 'locationName' => 'greetingMessage', ],
100+
'enableAsr' => [ 'type' => 'integer', 'locationName' => 'enableAsr', ],
101+
'asrVendor' => [ 'type' => 'string', 'locationName' => 'asrVendor', ],
102+
'asrParams' => [ 'type' => 'map', 'key' => [ 'type' => 'string', ], 'value' => [ 'type' => 'string', ], ],
103+
'enableLlm' => [ 'type' => 'integer', 'locationName' => 'enableLlm', ],
104+
'llmVendor' => [ 'type' => 'string', 'locationName' => 'llmVendor', ],
105+
'llmParams' => [ 'type' => 'map', 'key' => [ 'type' => 'string', ], 'value' => [ 'type' => 'string', ], ],
106+
'enableTts' => [ 'type' => 'integer', 'locationName' => 'enableTts', ],
107+
'ttsVendor' => [ 'type' => 'string', 'locationName' => 'ttsVendor', ],
108+
'ttsParams' => [ 'type' => 'map', 'key' => [ 'type' => 'string', ], 'value' => [ 'type' => 'string', ], ],
109+
'vadParams' => [ 'shape' => 'VadParams', ],
110+
'silenceParams' => [ 'shape' => 'SilenceParams', ],
111+
'agentParams' => [ 'type' => 'object', 'locationName' => 'agentParams', ],
112+
],
113+
],
114+
'ConvoAgentStatusInfo' => [
115+
'type' => 'structure',
116+
'members' => [
117+
'agentName' => [ 'type' => 'string', 'locationName' => 'agentName', ],
118+
'agentId' => [ 'type' => 'string', 'locationName' => 'agentId', ],
119+
'appId' => [ 'type' => 'string', 'locationName' => 'appId', ],
120+
'userPin' => [ 'type' => 'string', 'locationName' => 'userPin', ],
121+
'userRoomId' => [ 'type' => 'string', 'locationName' => 'userRoomId', ],
122+
'userId' => [ 'type' => 'string', 'locationName' => 'userId', ],
123+
'status' => [ 'type' => 'integer', 'locationName' => 'status', ],
124+
'errorMsg' => [ 'type' => 'string', 'locationName' => 'errorMsg', ],
125+
'createTime' => [ 'type' => 'string', 'locationName' => 'createTime', ],
126+
'updateTime' => [ 'type' => 'string', 'locationName' => 'updateTime', ],
127+
],
128+
],
129+
'QueryConvoAgentStatusResponseShape' => [
130+
'type' => 'structure',
131+
'members' => [
132+
'result' => [ 'shape' => 'QueryConvoAgentStatusResultShape', ],
133+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
134+
],
135+
],
136+
'QueryConvoAgentListResponseShape' => [
137+
'type' => 'structure',
138+
'members' => [
139+
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
140+
'result' => [ 'shape' => 'QueryConvoAgentListResultShape', ],
141+
],
142+
],
143+
'QueryConvoAgentListRequestShape' => [
144+
'type' => 'structure',
145+
'members' => [
146+
'pageNumber' => [ 'type' => 'integer', 'locationName' => 'pageNumber', ],
147+
'pageSize' => [ 'type' => 'integer', 'locationName' => 'pageSize', ],
148+
'filters' => [ 'type' => 'list', 'member' => [ 'shape' => 'Filter', ], ],
149+
],
150+
],
151+
'QueryConvoAgentListResultShape' => [
152+
'type' => 'structure',
153+
'members' => [
154+
'pageNumber' => [ 'type' => 'integer', 'locationName' => 'pageNumber', ],
155+
'pageSize' => [ 'type' => 'integer', 'locationName' => 'pageSize', ],
156+
'totalElements' => [ 'type' => 'integer', 'locationName' => 'totalElements', ],
157+
'totalPages' => [ 'type' => 'integer', 'locationName' => 'totalPages', ],
158+
'content' => [ 'type' => 'list', 'member' => [ 'shape' => 'ConvoAgentStatusInfo', ], ],
159+
],
160+
],
161+
'QueryConvoAgentStatusRequestShape' => [
162+
'type' => 'structure',
163+
'members' => [
164+
'agentId' => [ 'type' => 'string', 'locationName' => 'agentId', ],
165+
],
166+
],
167+
'QueryConvoAgentStatusResultShape' => [
168+
'type' => 'structure',
169+
'members' => [
170+
'agentName' => [ 'type' => 'string', 'locationName' => 'agentName', ],
171+
'agentId' => [ 'type' => 'string', 'locationName' => 'agentId', ],
172+
'appId' => [ 'type' => 'string', 'locationName' => 'appId', ],
173+
'userPin' => [ 'type' => 'string', 'locationName' => 'userPin', ],
174+
'userRoomId' => [ 'type' => 'string', 'locationName' => 'userRoomId', ],
175+
'userId' => [ 'type' => 'string', 'locationName' => 'userId', ],
176+
'status' => [ 'type' => 'integer', 'locationName' => 'status', ],
177+
'errorMsg' => [ 'type' => 'string', 'locationName' => 'errorMsg', ],
178+
'createTime' => [ 'type' => 'string', 'locationName' => 'createTime', ],
179+
'updateTime' => [ 'type' => 'string', 'locationName' => 'updateTime', ],
180+
],
181+
],
182+
'StartConvoAgentResult' => [
183+
'type' => 'structure',
184+
'members' => [
185+
'agentId' => [ 'type' => 'string', 'locationName' => 'agentId', ],
186+
'status' => [ 'type' => 'integer', 'locationName' => 'status', ],
187+
],
188+
],
189+
],
190+
];

0 commit comments

Comments
 (0)