1+ <?php
2+ /**
3+ * Jdaip
4+ *
5+ * @category Jdcloud
6+ * @package Jdcloud\Jdaip
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 \Jdaip ;
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 jdaip.
22+ *
23+ * @method \Jdcloud\Result describeExperiments(array $args = [])
24+ * @method \GuzzleHttp\Promise\Promise describeExperimentsAsync(array $args = [])
25+ * @method \Jdcloud\Result createExperiment(array $args = [])
26+ * @method \GuzzleHttp\Promise\Promise createExperimentAsync(array $args = [])
27+ * @method \Jdcloud\Result describeExperiment(array $args = [])
28+ * @method \GuzzleHttp\Promise\Promise describeExperimentAsync(array $args = [])
29+ * @method \Jdcloud\Result updateExperiment(array $args = [])
30+ * @method \GuzzleHttp\Promise\Promise updateExperimentAsync(array $args = [])
31+ * @method \Jdcloud\Result deleteExperiment(array $args = [])
32+ * @method \GuzzleHttp\Promise\Promise deleteExperimentAsync(array $args = [])
33+ * @method \Jdcloud\Result describeJobTypes(array $args = [])
34+ * @method \GuzzleHttp\Promise\Promise describeJobTypesAsync(array $args = [])
35+ * @method \Jdcloud\Result describeJobs(array $args = [])
36+ * @method \GuzzleHttp\Promise\Promise describeJobsAsync(array $args = [])
37+ * @method \Jdcloud\Result createJob(array $args = [])
38+ * @method \GuzzleHttp\Promise\Promise createJobAsync(array $args = [])
39+ * @method \Jdcloud\Result describeJob(array $args = [])
40+ * @method \GuzzleHttp\Promise\Promise describeJobAsync(array $args = [])
41+ * @method \Jdcloud\Result deleteJob(array $args = [])
42+ * @method \GuzzleHttp\Promise\Promise deleteJobAsync(array $args = [])
43+ * @method \Jdcloud\Result stopJob(array $args = [])
44+ * @method \GuzzleHttp\Promise\Promise stopJobAsync(array $args = [])
45+ * @method \Jdcloud\Result getJobEvents(array $args = [])
46+ * @method \GuzzleHttp\Promise\Promise getJobEventsAsync(array $args = [])
47+ * @method \Jdcloud\Result getPodLogs(array $args = [])
48+ * @method \GuzzleHttp\Promise\Promise getPodLogsAsync(array $args = [])
49+ * @method \Jdcloud\Result describeRunConfigs(array $args = [])
50+ * @method \GuzzleHttp\Promise\Promise describeRunConfigsAsync(array $args = [])
51+ * @method \Jdcloud\Result describeRuns(array $args = [])
52+ * @method \GuzzleHttp\Promise\Promise describeRunsAsync(array $args = [])
53+ * @method \Jdcloud\Result createRun(array $args = [])
54+ * @method \GuzzleHttp\Promise\Promise createRunAsync(array $args = [])
55+ * @method \Jdcloud\Result describeRun(array $args = [])
56+ * @method \GuzzleHttp\Promise\Promise describeRunAsync(array $args = [])
57+ * @method \Jdcloud\Result updateRun(array $args = [])
58+ * @method \GuzzleHttp\Promise\Promise updateRunAsync(array $args = [])
59+ * @method \Jdcloud\Result deleteRun(array $args = [])
60+ * @method \GuzzleHttp\Promise\Promise deleteRunAsync(array $args = [])
61+ * @method \Jdcloud\Result stopRun(array $args = [])
62+ * @method \GuzzleHttp\Promise\Promise stopRunAsync(array $args = [])
63+ * @method \Jdcloud\Result getRunEvents(array $args = [])
64+ * @method \GuzzleHttp\Promise\Promise getRunEventsAsync(array $args = [])
65+ * @method \Jdcloud\Result getPodLogs(array $args = [])
66+ * @method \GuzzleHttp\Promise\Promise getPodLogsAsync(array $args = [])
67+ * @method \Jdcloud\Result describeDatasets(array $args = [])
68+ * @method \GuzzleHttp\Promise\Promise describeDatasetsAsync(array $args = [])
69+ * @method \Jdcloud\Result createDataset(array $args = [])
70+ * @method \GuzzleHttp\Promise\Promise createDatasetAsync(array $args = [])
71+ * @method \Jdcloud\Result describeDataset(array $args = [])
72+ * @method \GuzzleHttp\Promise\Promise describeDatasetAsync(array $args = [])
73+ * @method \Jdcloud\Result updateDataset(array $args = [])
74+ * @method \GuzzleHttp\Promise\Promise updateDatasetAsync(array $args = [])
75+ * @method \Jdcloud\Result deleteDataset(array $args = [])
76+ * @method \GuzzleHttp\Promise\Promise deleteDatasetAsync(array $args = [])
77+ * @method \Jdcloud\Result describeDatasetVersions(array $args = [])
78+ * @method \GuzzleHttp\Promise\Promise describeDatasetVersionsAsync(array $args = [])
79+ * @method \Jdcloud\Result describeDatasetVersion(array $args = [])
80+ * @method \GuzzleHttp\Promise\Promise describeDatasetVersionAsync(array $args = [])
81+ * @method \Jdcloud\Result updateDatasetVersion(array $args = [])
82+ * @method \GuzzleHttp\Promise\Promise updateDatasetVersionAsync(array $args = [])
83+ * @method \Jdcloud\Result deleteDatasetVersion(array $args = [])
84+ * @method \GuzzleHttp\Promise\Promise deleteDatasetVersionAsync(array $args = [])
85+ * @method \Jdcloud\Result describeImages(array $args = [])
86+ * @method \GuzzleHttp\Promise\Promise describeImagesAsync(array $args = [])
87+ * @method \Jdcloud\Result createImage(array $args = [])
88+ * @method \GuzzleHttp\Promise\Promise createImageAsync(array $args = [])
89+ * @method \Jdcloud\Result describeImage(array $args = [])
90+ * @method \GuzzleHttp\Promise\Promise describeImageAsync(array $args = [])
91+ * @method \Jdcloud\Result deleteImage(array $args = [])
92+ * @method \GuzzleHttp\Promise\Promise deleteImageAsync(array $args = [])
93+ * @method \Jdcloud\Result getPodLogs(array $args = [])
94+ * @method \GuzzleHttp\Promise\Promise getPodLogsAsync(array $args = [])
95+ * @method \Jdcloud\Result describeInferences(array $args = [])
96+ * @method \GuzzleHttp\Promise\Promise describeInferencesAsync(array $args = [])
97+ * @method \Jdcloud\Result createInference(array $args = [])
98+ * @method \GuzzleHttp\Promise\Promise createInferenceAsync(array $args = [])
99+ * @method \Jdcloud\Result describeInference(array $args = [])
100+ * @method \GuzzleHttp\Promise\Promise describeInferenceAsync(array $args = [])
101+ * @method \Jdcloud\Result updateInference(array $args = [])
102+ * @method \GuzzleHttp\Promise\Promise updateInferenceAsync(array $args = [])
103+ * @method \Jdcloud\Result deleteInference(array $args = [])
104+ * @method \GuzzleHttp\Promise\Promise deleteInferenceAsync(array $args = [])
105+ * @method \Jdcloud\Result startInference(array $args = [])
106+ * @method \GuzzleHttp\Promise\Promise startInferenceAsync(array $args = [])
107+ * @method \Jdcloud\Result stopInference(array $args = [])
108+ * @method \GuzzleHttp\Promise\Promise stopInferenceAsync(array $args = [])
109+ * @method \Jdcloud\Result describeInferenceEvents(array $args = [])
110+ * @method \GuzzleHttp\Promise\Promise describeInferenceEventsAsync(array $args = [])
111+ * @method \Jdcloud\Result describeServices(array $args = [])
112+ * @method \GuzzleHttp\Promise\Promise describeServicesAsync(array $args = [])
113+ * @method \Jdcloud\Result describeService(array $args = [])
114+ * @method \GuzzleHttp\Promise\Promise describeServiceAsync(array $args = [])
115+ * @method \Jdcloud\Result deleteService(array $args = [])
116+ * @method \GuzzleHttp\Promise\Promise deleteServiceAsync(array $args = [])
117+ * @method \Jdcloud\Result listMetrics(array $args = [])
118+ * @method \GuzzleHttp\Promise\Promise listMetricsAsync(array $args = [])
119+ * @method \Jdcloud\Result describePrivateModels(array $args = [])
120+ * @method \GuzzleHttp\Promise\Promise describePrivateModelsAsync(array $args = [])
121+ * @method \Jdcloud\Result createModel(array $args = [])
122+ * @method \GuzzleHttp\Promise\Promise createModelAsync(array $args = [])
123+ * @method \Jdcloud\Result updateModel(array $args = [])
124+ * @method \GuzzleHttp\Promise\Promise updateModelAsync(array $args = [])
125+ * @method \Jdcloud\Result deleteModel(array $args = [])
126+ * @method \GuzzleHttp\Promise\Promise deleteModelAsync(array $args = [])
127+ * @method \Jdcloud\Result describeModelVersions(array $args = [])
128+ * @method \GuzzleHttp\Promise\Promise describeModelVersionsAsync(array $args = [])
129+ * @method \Jdcloud\Result describeModelVersion(array $args = [])
130+ * @method \GuzzleHttp\Promise\Promise describeModelVersionAsync(array $args = [])
131+ * @method \Jdcloud\Result updateModelVersion(array $args = [])
132+ * @method \GuzzleHttp\Promise\Promise updateModelVersionAsync(array $args = [])
133+ * @method \Jdcloud\Result deleteModelVersion(array $args = [])
134+ * @method \GuzzleHttp\Promise\Promise deleteModelVersionAsync(array $args = [])
135+ * @method \Jdcloud\Result describePublicModels(array $args = [])
136+ * @method \GuzzleHttp\Promise\Promise describePublicModelsAsync(array $args = [])
137+ * @method \Jdcloud\Result describePublicModelVersion(array $args = [])
138+ * @method \GuzzleHttp\Promise\Promise describePublicModelVersionAsync(array $args = [])
139+ * @method \Jdcloud\Result describeNotebooks(array $args = [])
140+ * @method \GuzzleHttp\Promise\Promise describeNotebooksAsync(array $args = [])
141+ * @method \Jdcloud\Result createNotebook(array $args = [])
142+ * @method \GuzzleHttp\Promise\Promise createNotebookAsync(array $args = [])
143+ * @method \Jdcloud\Result describeNotebookCount(array $args = [])
144+ * @method \GuzzleHttp\Promise\Promise describeNotebookCountAsync(array $args = [])
145+ * @method \Jdcloud\Result describeNotebook(array $args = [])
146+ * @method \GuzzleHttp\Promise\Promise describeNotebookAsync(array $args = [])
147+ * @method \Jdcloud\Result updateNotebook(array $args = [])
148+ * @method \GuzzleHttp\Promise\Promise updateNotebookAsync(array $args = [])
149+ * @method \Jdcloud\Result deleteNotebook(array $args = [])
150+ * @method \GuzzleHttp\Promise\Promise deleteNotebookAsync(array $args = [])
151+ * @method \Jdcloud\Result startNotebook(array $args = [])
152+ * @method \GuzzleHttp\Promise\Promise startNotebookAsync(array $args = [])
153+ * @method \Jdcloud\Result stopNotebook(array $args = [])
154+ * @method \GuzzleHttp\Promise\Promise stopNotebookAsync(array $args = [])
155+ * @method \Jdcloud\Result getNotebookEvents(array $args = [])
156+ * @method \GuzzleHttp\Promise\Promise getNotebookEventsAsync(array $args = [])
157+ * @method \Jdcloud\Result getNotebookPods(array $args = [])
158+ * @method \GuzzleHttp\Promise\Promise getNotebookPodsAsync(array $args = [])
159+ * @method \Jdcloud\Result getNotebookLogs(array $args = [])
160+ * @method \GuzzleHttp\Promise\Promise getNotebookLogsAsync(array $args = [])
161+ * @method \Jdcloud\Result saveImage(array $args = [])
162+ * @method \GuzzleHttp\Promise\Promise saveImageAsync(array $args = [])
163+ * @method \Jdcloud\Result describeImageTasks(array $args = [])
164+ * @method \GuzzleHttp\Promise\Promise describeImageTasksAsync(array $args = [])
165+ * @method \Jdcloud\Result describeImageTaskLog(array $args = [])
166+ * @method \GuzzleHttp\Promise\Promise describeImageTaskLogAsync(array $args = [])
167+ * @method \Jdcloud\Result deleteImageTask(array $args = [])
168+ * @method \GuzzleHttp\Promise\Promise deleteImageTaskAsync(array $args = [])
169+ * @method \Jdcloud\Result createWorkspace(array $args = [])
170+ * @method \GuzzleHttp\Promise\Promise createWorkspaceAsync(array $args = [])
171+ * @method \Jdcloud\Result describeWorkspaces(array $args = [])
172+ * @method \GuzzleHttp\Promise\Promise describeWorkspacesAsync(array $args = [])
173+ * @method \Jdcloud\Result describeWorkspace(array $args = [])
174+ * @method \GuzzleHttp\Promise\Promise describeWorkspaceAsync(array $args = [])
175+ * @method \Jdcloud\Result updateWorkspace(array $args = [])
176+ * @method \GuzzleHttp\Promise\Promise updateWorkspaceAsync(array $args = [])
177+ * @method \Jdcloud\Result deleteWorkspace(array $args = [])
178+ * @method \GuzzleHttp\Promise\Promise deleteWorkspaceAsync(array $args = [])
179+ * @method \Jdcloud\Result describeMembers(array $args = [])
180+ * @method \GuzzleHttp\Promise\Promise describeMembersAsync(array $args = [])
181+ * @method \Jdcloud\Result addMembers(array $args = [])
182+ * @method \GuzzleHttp\Promise\Promise addMembersAsync(array $args = [])
183+ * @method \Jdcloud\Result updateMembers(array $args = [])
184+ * @method \GuzzleHttp\Promise\Promise updateMembersAsync(array $args = [])
185+ * @method \Jdcloud\Result removeMembers(array $args = [])
186+ * @method \GuzzleHttp\Promise\Promise removeMembersAsync(array $args = [])
187+ * @method \Jdcloud\Result describeQueueIds(array $args = [])
188+ * @method \GuzzleHttp\Promise\Promise describeQueueIdsAsync(array $args = [])
189+ * @method \Jdcloud\Result addQueues(array $args = [])
190+ * @method \GuzzleHttp\Promise\Promise addQueuesAsync(array $args = [])
191+ * @method \Jdcloud\Result removeQueues(array $args = [])
192+ * @method \GuzzleHttp\Promise\Promise removeQueuesAsync(array $args = [])
193+ */
194+ class JdaipClient extends JdCloudClient
195+ {
196+ public function __construct (array $ args )
197+ {
198+ $ args ['with_resolved ' ] = function (array $ args ) {
199+ $ this ->getHandlerList ()->appendInit (
200+ PresignUrlMiddleware::wrap (
201+ $ this ,
202+ $ args ['endpoint_provider ' ],
203+ [
204+ 'operations ' => [
205+ ],
206+ 'service ' => 'jdaip ' ,
207+ 'presign_param ' => 'PresignedUrl ' ,
208+ ]
209+ ),
210+ 'jdaip '
211+ );
212+ };
213+
214+ parent ::__construct ($ args );
215+ }
216+ }
0 commit comments