Skip to content

Commit e657eb5

Browse files
Merge pull request #146 from jdcloud-apigateway/master
add updates
2 parents d0ec52a + e550014 commit e657eb5

3 files changed

Lines changed: 16 additions & 174 deletions

File tree

src/Assistant/AssistantClient.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,28 +20,18 @@
2020
/**
2121
* Client used to interact with assistant.
2222
*
23-
* @method \Jdcloud\Result describeAssistants(array $args = [])
24-
* @method \GuzzleHttp\Promise\Promise describeAssistantsAsync(array $args = [])
2523
* @method \Jdcloud\Result createCommand(array $args = [])
2624
* @method \GuzzleHttp\Promise\Promise createCommandAsync(array $args = [])
2725
* @method \Jdcloud\Result describeCommands(array $args = [])
2826
* @method \GuzzleHttp\Promise\Promise describeCommandsAsync(array $args = [])
29-
* @method \Jdcloud\Result modifyCommand(array $args = [])
30-
* @method \GuzzleHttp\Promise\Promise modifyCommandAsync(array $args = [])
3127
* @method \Jdcloud\Result deleteCommands(array $args = [])
3228
* @method \GuzzleHttp\Promise\Promise deleteCommandsAsync(array $args = [])
3329
* @method \Jdcloud\Result invokeCommand(array $args = [])
3430
* @method \GuzzleHttp\Promise\Promise invokeCommandAsync(array $args = [])
35-
* @method \Jdcloud\Result runCommand(array $args = [])
36-
* @method \GuzzleHttp\Promise\Promise runCommandAsync(array $args = [])
3731
* @method \Jdcloud\Result describeInvocations(array $args = [])
3832
* @method \GuzzleHttp\Promise\Promise describeInvocationsAsync(array $args = [])
39-
* @method \Jdcloud\Result stopInvocation(array $args = [])
40-
* @method \GuzzleHttp\Promise\Promise stopInvocationAsync(array $args = [])
4133
* @method \Jdcloud\Result addLogConfig(array $args = [])
4234
* @method \GuzzleHttp\Promise\Promise addLogConfigAsync(array $args = [])
43-
* @method \Jdcloud\Result modifyLogConfig(array $args = [])
44-
* @method \GuzzleHttp\Promise\Promise modifyLogConfigAsync(array $args = [])
4535
*/
4636
class AssistantClient extends JdCloudClient
4737
{

src/Assistant/ChangeLog.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 更新历史 #
2-
API版本:1.0.0
2+
API版本:1.0.1
33

4-
| 发布时间 | 版本号 |更新| 说明 |
5-
|------------|-------|---|----------------------------------------------------------------------------------------------------------------|
6-
| 2023-04-03 | 1.0.0 | 增加接口 | 保存命令、执行命令、停止命令和查询执行结果等。 |
4+
| 发布时间 | 版本号 | 更新 | 说明 |
5+
|------------|-------|--------|----------------------------------------------------------------------------------------------------------------|
6+
| 2024-03-27 | 1.0.1 | 支持定时任务 | 保存命令、执行命令、停止命令和查询执行结果等。 |
7+
| 2023-04-03 | 1.0.0 | 增加接口 | 保存命令、执行命令、停止命令和查询执行结果等。 |

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

Lines changed: 11 additions & 160 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111
// 'serviceId' => 'assistant',
1212
],
1313
'operations' => [
14-
'DescribeAssistants' => [
15-
'name' => 'DescribeAssistants',
16-
'http' => [
17-
'method' => 'POST',
18-
'requestUri' => '/v1/regions/{regionId}/describeAssistants',
19-
],
20-
'input' => [ 'shape' => 'DescribeAssistantsRequestShape', ],
21-
'output' => [ 'shape' => 'DescribeAssistantsResponseShape', ],
22-
],
2314
'CreateCommand' => [
2415
'name' => 'CreateCommand',
2516
'http' => [
@@ -38,15 +29,6 @@
3829
'input' => [ 'shape' => 'DescribeCommandsRequestShape', ],
3930
'output' => [ 'shape' => 'DescribeCommandsResponseShape', ],
4031
],
41-
'ModifyCommand' => [
42-
'name' => 'ModifyCommand',
43-
'http' => [
44-
'method' => 'POST',
45-
'requestUri' => '/v1/regions/{regionId}/modifyCommand',
46-
],
47-
'input' => [ 'shape' => 'ModifyCommandRequestShape', ],
48-
'output' => [ 'shape' => 'ModifyCommandResponseShape', ],
49-
],
5032
'DeleteCommands' => [
5133
'name' => 'DeleteCommands',
5234
'http' => [
@@ -65,15 +47,6 @@
6547
'input' => [ 'shape' => 'InvokeCommandRequestShape', ],
6648
'output' => [ 'shape' => 'InvokeCommandResponseShape', ],
6749
],
68-
'RunCommand' => [
69-
'name' => 'RunCommand',
70-
'http' => [
71-
'method' => 'POST',
72-
'requestUri' => '/v1/regions/{regionId}/runCommand',
73-
],
74-
'input' => [ 'shape' => 'RunCommandRequestShape', ],
75-
'output' => [ 'shape' => 'RunCommandResponseShape', ],
76-
],
7750
'DescribeInvocations' => [
7851
'name' => 'DescribeInvocations',
7952
'http' => [
@@ -83,15 +56,6 @@
8356
'input' => [ 'shape' => 'DescribeInvocationsRequestShape', ],
8457
'output' => [ 'shape' => 'DescribeInvocationsResponseShape', ],
8558
],
86-
'StopInvocation' => [
87-
'name' => 'StopInvocation',
88-
'http' => [
89-
'method' => 'POST',
90-
'requestUri' => '/v1/regions/{regionId}/stopInvocation',
91-
],
92-
'input' => [ 'shape' => 'StopInvocationRequestShape', ],
93-
'output' => [ 'shape' => 'StopInvocationResponseShape', ],
94-
],
9559
'AddLogConfig' => [
9660
'name' => 'AddLogConfig',
9761
'http' => [
@@ -101,15 +65,6 @@
10165
'input' => [ 'shape' => 'AddLogConfigRequestShape', ],
10266
'output' => [ 'shape' => 'AddLogConfigResponseShape', ],
10367
],
104-
'ModifyLogConfig' => [
105-
'name' => 'ModifyLogConfig',
106-
'http' => [
107-
'method' => 'POST',
108-
'requestUri' => '/v1/regions/{regionId}/modifyLogConfig',
109-
],
110-
'input' => [ 'shape' => 'ModifyLogConfigRequestShape', ],
111-
'output' => [ 'shape' => 'ModifyLogConfigResponseShape', ],
112-
],
11368
],
11469
'shapes' => [
11570
'Assistant' => [
@@ -152,7 +107,11 @@
152107
'status' => [ 'type' => 'string', 'locationName' => 'status', ],
153108
'commandId' => [ 'type' => 'string', 'locationName' => 'commandId', ],
154109
'commandName' => [ 'type' => 'string', 'locationName' => 'commandName', ],
110+
'sourceType' => [ 'type' => 'string', 'locationName' => 'sourceType', ],
155111
'invokeId' => [ 'type' => 'string', 'locationName' => 'invokeId', ],
112+
'instances' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
113+
'tags' => [ 'type' => 'list', 'member' => [ 'shape' => 'TagFilter', ], ],
114+
'invokeInstances' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
156115
'commandType' => [ 'type' => 'string', 'locationName' => 'commandType', ],
157116
'commandContent' => [ 'type' => 'string', 'locationName' => 'commandContent', ],
158117
'commandDescription' => [ 'type' => 'string', 'locationName' => 'commandDescription', ],
@@ -161,7 +120,9 @@
161120
'timeout' => [ 'type' => 'string', 'locationName' => 'timeout', ],
162121
'username' => [ 'type' => 'string', 'locationName' => 'username', ],
163122
'workdir' => [ 'type' => 'string', 'locationName' => 'workdir', ],
123+
'errorInfo' => [ 'type' => 'string', 'locationName' => 'errorInfo', ],
164124
'createTime' => [ 'type' => 'string', 'locationName' => 'createTime', ],
125+
'execTime' => [ 'type' => 'string', 'locationName' => 'execTime', ],
165126
],
166127
],
167128
'InvocationInstance' => [
@@ -180,31 +141,20 @@
180141
'updateTime' => [ 'type' => 'string', 'locationName' => 'updateTime', ],
181142
],
182143
],
183-
'DescribeAssistantsResponseShape' => [
144+
'TagFilter' => [
184145
'type' => 'structure',
185146
'members' => [
186-
'result' => [ 'shape' => 'DescribeAssistantsResultShape', ],
187-
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
188-
],
189-
],
190-
'DescribeAssistantsRequestShape' => [
191-
'type' => 'structure',
192-
'members' => [
193-
'instances' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
194-
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
195-
],
196-
],
197-
'DescribeAssistantsResultShape' => [
198-
'type' => 'structure',
199-
'members' => [
200-
'assistants' => [ 'type' => 'list', 'member' => [ 'shape' => 'Assistant', ], ],
147+
'key' => [ 'type' => 'string', 'locationName' => 'key', ],
148+
'values' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
201149
],
202150
],
203151
'InvokeCommandRequestShape' => [
204152
'type' => 'structure',
205153
'members' => [
206154
'commandId' => [ 'type' => 'string', 'locationName' => 'commandId', ],
207155
'instances' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
156+
'tags' => [ 'type' => 'list', 'member' => [ 'shape' => 'TagFilter', ], ],
157+
'execTime' => [ 'type' => 'string', 'locationName' => 'execTime', ],
208158
'timeout' => [ 'type' => 'integer', 'locationName' => 'timeout', ],
209159
'username' => [ 'type' => 'string', 'locationName' => 'username', ],
210160
'workdir' => [ 'type' => 'string', 'locationName' => 'workdir', ],
@@ -227,12 +177,6 @@
227177
'invokeId' => [ 'type' => 'string', 'locationName' => 'invokeId', ],
228178
],
229179
],
230-
'ModifyCommandResultShape' => [
231-
'type' => 'structure',
232-
'members' => [
233-
'commandId' => [ 'type' => 'string', 'locationName' => 'commandId', ],
234-
],
235-
],
236180
'DeleteCommandsResultShape' => [
237181
'type' => 'structure',
238182
'members' => [
@@ -266,27 +210,13 @@
266210
'commands' => [ 'type' => 'list', 'member' => [ 'shape' => 'Command', ], ],
267211
],
268212
],
269-
'RunCommandResultShape' => [
270-
'type' => 'structure',
271-
'members' => [
272-
'commandId' => [ 'type' => 'string', 'locationName' => 'commandId', ],
273-
'invokeId' => [ 'type' => 'string', 'locationName' => 'invokeId', ],
274-
],
275-
],
276213
'DeleteCommandsResponseShape' => [
277214
'type' => 'structure',
278215
'members' => [
279216
'result' => [ 'shape' => 'DeleteCommandsResultShape', ],
280217
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
281218
],
282219
],
283-
'RunCommandResponseShape' => [
284-
'type' => 'structure',
285-
'members' => [
286-
'result' => [ 'shape' => 'RunCommandResultShape', ],
287-
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
288-
],
289-
],
290220
'DescribeCommandsResponseShape' => [
291221
'type' => 'structure',
292222
'members' => [
@@ -321,73 +251,13 @@
321251
'commandId' => [ 'type' => 'string', 'locationName' => 'commandId', ],
322252
],
323253
],
324-
'ModifyCommandRequestShape' => [
325-
'type' => 'structure',
326-
'members' => [
327-
'commandId' => [ 'type' => 'string', 'locationName' => 'commandId', ],
328-
'commandName' => [ 'type' => 'string', 'locationName' => 'commandName', ],
329-
'commandType' => [ 'type' => 'string', 'locationName' => 'commandType', ],
330-
'commandContent' => [ 'type' => 'string', 'locationName' => 'commandContent', ],
331-
'commandDescription' => [ 'type' => 'string', 'locationName' => 'commandDescription', ],
332-
'workdir' => [ 'type' => 'string', 'locationName' => 'workdir', ],
333-
'timeout' => [ 'type' => 'integer', 'locationName' => 'timeout', ],
334-
'username' => [ 'type' => 'string', 'locationName' => 'username', ],
335-
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
336-
],
337-
],
338-
'RunCommandRequestShape' => [
339-
'type' => 'structure',
340-
'members' => [
341-
'commandName' => [ 'type' => 'string', 'locationName' => 'commandName', ],
342-
'commandType' => [ 'type' => 'string', 'locationName' => 'commandType', ],
343-
'commandContent' => [ 'type' => 'string', 'locationName' => 'commandContent', ],
344-
'windowsPassword' => [ 'type' => 'string', 'locationName' => 'windowsPassword', ],
345-
'instances' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
346-
'timeout' => [ 'type' => 'integer', 'locationName' => 'timeout', ],
347-
'username' => [ 'type' => 'string', 'locationName' => 'username', ],
348-
'workdir' => [ 'type' => 'string', 'locationName' => 'workdir', ],
349-
'enableParameter' => [ 'type' => 'boolean', 'locationName' => 'enableParameter', ],
350-
'keepCommand' => [ 'type' => 'boolean', 'locationName' => 'keepCommand', ],
351-
'commandDescription' => [ 'type' => 'string', 'locationName' => 'commandDescription', ],
352-
'parameters' => [ 'type' => 'list', 'member' => [ 'shape' => 'Parameter', ], ],
353-
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
354-
],
355-
],
356-
'ModifyCommandResponseShape' => [
357-
'type' => 'structure',
358-
'members' => [
359-
'result' => [ 'shape' => 'ModifyCommandResultShape', ],
360-
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
361-
],
362-
],
363254
'DescribeInvocationsResultShape' => [
364255
'type' => 'structure',
365256
'members' => [
366257
'totalCount' => [ 'type' => 'integer', 'locationName' => 'totalCount', ],
367258
'invocations' => [ 'type' => 'list', 'member' => [ 'shape' => 'Invocation', ], ],
368259
],
369260
],
370-
'StopInvocationResponseShape' => [
371-
'type' => 'structure',
372-
'members' => [
373-
'result' => [ 'shape' => 'StopInvocationResultShape', ],
374-
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
375-
],
376-
],
377-
'StopInvocationRequestShape' => [
378-
'type' => 'structure',
379-
'members' => [
380-
'invokeId' => [ 'type' => 'string', 'locationName' => 'invokeId', ],
381-
'instances' => [ 'type' => 'list', 'member' => [ 'type' => 'string', ], ],
382-
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
383-
],
384-
],
385-
'StopInvocationResultShape' => [
386-
'type' => 'structure',
387-
'members' => [
388-
'invokeId' => [ 'type' => 'string', 'locationName' => 'invokeId', ],
389-
],
390-
],
391261
'DescribeInvocationsRequestShape' => [
392262
'type' => 'structure',
393263
'members' => [
@@ -414,19 +284,6 @@
414284
'members' => [
415285
],
416286
],
417-
'ModifyLogConfigResultShape' => [
418-
'type' => 'structure',
419-
'members' => [
420-
],
421-
],
422-
'ModifyLogConfigRequestShape' => [
423-
'type' => 'structure',
424-
'members' => [
425-
'logset' => [ 'type' => 'string', 'locationName' => 'logset', ],
426-
'logtopic' => [ 'type' => 'string', 'locationName' => 'logtopic', ],
427-
'regionId' => [ 'type' => 'string', 'locationName' => 'regionId', ],
428-
],
429-
],
430287
'AddLogConfigRequestShape' => [
431288
'type' => 'structure',
432289
'members' => [
@@ -441,11 +298,5 @@
441298
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
442299
],
443300
],
444-
'ModifyLogConfigResponseShape' => [
445-
'type' => 'structure',
446-
'members' => [
447-
'requestId' => [ 'type' => 'string', 'locationName' => 'requestId', ],
448-
],
449-
],
450301
],
451302
];

0 commit comments

Comments
 (0)