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+ }
0 commit comments