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