1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Iqa\V20190813; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method CreateProject createProject(array $options = []) |
9
|
|
|
* @method DeleteProject deleteProject(array $options = []) |
10
|
|
|
* @method DeployService deployService(array $options = []) |
11
|
|
|
* @method DescribeProject describeProject(array $options = []) |
12
|
|
|
* @method GetPredictResult getPredictResult(array $options = []) |
13
|
|
|
* @method ListProjects listProjects(array $options = []) |
14
|
|
|
* @method ModifiyProject modifiyProject(array $options = []) |
15
|
|
|
* @method UploadDictionary uploadDictionary(array $options = []) |
16
|
|
|
* @method UploadDocument uploadDocument(array $options = []) |
17
|
|
|
*/ |
18
|
|
|
class IqaApiResolver extends ApiResolver |
19
|
|
|
{ |
20
|
|
|
} |
21
|
|
|
|
22
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
23
|
|
|
{ |
24
|
|
|
/** @var string */ |
25
|
|
|
public $product = 'iqa'; |
26
|
|
|
|
27
|
|
|
/** @var string */ |
28
|
|
|
public $version = '2019-08-13'; |
29
|
|
|
|
30
|
|
|
/** @var string */ |
31
|
|
|
public $method = 'POST'; |
32
|
|
|
|
33
|
|
|
/** @var string */ |
34
|
|
|
public $serviceCode = 'iqa'; |
35
|
|
|
} |
36
|
|
|
|
37
|
|
|
/** |
38
|
|
|
* @method string getProjectName() |
39
|
|
|
* @method string getModelId() |
40
|
|
|
* @method string getProjectType() |
41
|
|
|
*/ |
42
|
|
|
class CreateProject extends Rpc |
43
|
|
|
{ |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* @param string $value |
47
|
|
|
* |
48
|
|
|
* @return $this |
49
|
|
|
*/ |
50
|
|
|
public function withProjectName($value) |
51
|
|
|
{ |
52
|
|
|
$this->data['ProjectName'] = $value; |
53
|
|
|
$this->options['form_params']['ProjectName'] = $value; |
54
|
|
|
|
55
|
|
|
return $this; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @param string $value |
60
|
|
|
* |
61
|
|
|
* @return $this |
62
|
|
|
*/ |
63
|
|
|
public function withModelId($value) |
64
|
|
|
{ |
65
|
|
|
$this->data['ModelId'] = $value; |
66
|
|
|
$this->options['form_params']['ModelId'] = $value; |
67
|
|
|
|
68
|
|
|
return $this; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @param string $value |
73
|
|
|
* |
74
|
|
|
* @return $this |
75
|
|
|
*/ |
76
|
|
|
public function withProjectType($value) |
77
|
|
|
{ |
78
|
|
|
$this->data['ProjectType'] = $value; |
79
|
|
|
$this->options['form_params']['ProjectType'] = $value; |
80
|
|
|
|
81
|
|
|
return $this; |
82
|
|
|
} |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* @method string getProjectId() |
87
|
|
|
* @method $this withProjectId($value) |
88
|
|
|
*/ |
89
|
|
|
class DeleteProject extends Rpc |
90
|
|
|
{ |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @method string getProjectId() |
95
|
|
|
* @method $this withProjectId($value) |
96
|
|
|
*/ |
97
|
|
|
class DeployService extends Rpc |
98
|
|
|
{ |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* @method string getProjectId() |
103
|
|
|
* @method $this withProjectId($value) |
104
|
|
|
*/ |
105
|
|
|
class DescribeProject extends Rpc |
106
|
|
|
{ |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @method string getTopK() |
111
|
|
|
* @method $this withTopK($value) |
112
|
|
|
* @method string getTraceTag() |
113
|
|
|
* @method $this withTraceTag($value) |
114
|
|
|
* @method string getQuestion() |
115
|
|
|
* @method string getProjectId() |
116
|
|
|
* @method $this withProjectId($value) |
117
|
|
|
*/ |
118
|
|
|
class GetPredictResult extends Rpc |
119
|
|
|
{ |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* @param string $value |
123
|
|
|
* |
124
|
|
|
* @return $this |
125
|
|
|
*/ |
126
|
|
|
public function withQuestion($value) |
127
|
|
|
{ |
128
|
|
|
$this->data['Question'] = $value; |
129
|
|
|
$this->options['form_params']['Question'] = $value; |
130
|
|
|
|
131
|
|
|
return $this; |
132
|
|
|
} |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* @method string getFilterParam() |
137
|
|
|
* @method $this withFilterParam($value) |
138
|
|
|
* @method string getPageNumber() |
139
|
|
|
* @method $this withPageNumber($value) |
140
|
|
|
* @method string getPageSize() |
141
|
|
|
* @method $this withPageSize($value) |
142
|
|
|
* @method string getProjectType() |
143
|
|
|
* @method $this withProjectType($value) |
144
|
|
|
*/ |
145
|
|
|
class ListProjects extends Rpc |
146
|
|
|
{ |
147
|
|
|
} |
148
|
|
|
|
149
|
|
|
/** |
150
|
|
|
* @method string getProjectName() |
151
|
|
|
* @method string getModelId() |
152
|
|
|
* @method string getProjectId() |
153
|
|
|
*/ |
154
|
|
|
class ModifiyProject extends Rpc |
155
|
|
|
{ |
156
|
|
|
|
157
|
|
|
/** |
158
|
|
|
* @param string $value |
159
|
|
|
* |
160
|
|
|
* @return $this |
161
|
|
|
*/ |
162
|
|
|
public function withProjectName($value) |
163
|
|
|
{ |
164
|
|
|
$this->data['ProjectName'] = $value; |
165
|
|
|
$this->options['form_params']['ProjectName'] = $value; |
166
|
|
|
|
167
|
|
|
return $this; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
/** |
171
|
|
|
* @param string $value |
172
|
|
|
* |
173
|
|
|
* @return $this |
174
|
|
|
*/ |
175
|
|
|
public function withModelId($value) |
176
|
|
|
{ |
177
|
|
|
$this->data['ModelId'] = $value; |
178
|
|
|
$this->options['form_params']['ModelId'] = $value; |
179
|
|
|
|
180
|
|
|
return $this; |
181
|
|
|
} |
182
|
|
|
|
183
|
|
|
/** |
184
|
|
|
* @param string $value |
185
|
|
|
* |
186
|
|
|
* @return $this |
187
|
|
|
*/ |
188
|
|
|
public function withProjectId($value) |
189
|
|
|
{ |
190
|
|
|
$this->data['ProjectId'] = $value; |
191
|
|
|
$this->options['form_params']['ProjectId'] = $value; |
192
|
|
|
|
193
|
|
|
return $this; |
194
|
|
|
} |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
/** |
198
|
|
|
* @method string getDictionaryFileUrl() |
199
|
|
|
* @method string getProjectId() |
200
|
|
|
* @method string getDictionaryData() |
201
|
|
|
*/ |
202
|
|
|
class UploadDictionary extends Rpc |
203
|
|
|
{ |
204
|
|
|
|
205
|
|
|
/** |
206
|
|
|
* @param string $value |
207
|
|
|
* |
208
|
|
|
* @return $this |
209
|
|
|
*/ |
210
|
|
|
public function withDictionaryFileUrl($value) |
211
|
|
|
{ |
212
|
|
|
$this->data['DictionaryFileUrl'] = $value; |
213
|
|
|
$this->options['form_params']['DictionaryFileUrl'] = $value; |
214
|
|
|
|
215
|
|
|
return $this; |
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @param string $value |
220
|
|
|
* |
221
|
|
|
* @return $this |
222
|
|
|
*/ |
223
|
|
|
public function withProjectId($value) |
224
|
|
|
{ |
225
|
|
|
$this->data['ProjectId'] = $value; |
226
|
|
|
$this->options['form_params']['ProjectId'] = $value; |
227
|
|
|
|
228
|
|
|
return $this; |
229
|
|
|
} |
230
|
|
|
|
231
|
|
|
/** |
232
|
|
|
* @param string $value |
233
|
|
|
* |
234
|
|
|
* @return $this |
235
|
|
|
*/ |
236
|
|
|
public function withDictionaryData($value) |
237
|
|
|
{ |
238
|
|
|
$this->data['DictionaryData'] = $value; |
239
|
|
|
$this->options['form_params']['DictionaryData'] = $value; |
240
|
|
|
|
241
|
|
|
return $this; |
242
|
|
|
} |
243
|
|
|
} |
244
|
|
|
|
245
|
|
|
/** |
246
|
|
|
* @method string getDocumentData() |
247
|
|
|
* @method string getDocumentFileUrl() |
248
|
|
|
* @method string getProjectId() |
249
|
|
|
*/ |
250
|
|
|
class UploadDocument extends Rpc |
251
|
|
|
{ |
252
|
|
|
|
253
|
|
|
/** |
254
|
|
|
* @param string $value |
255
|
|
|
* |
256
|
|
|
* @return $this |
257
|
|
|
*/ |
258
|
|
|
public function withDocumentData($value) |
259
|
|
|
{ |
260
|
|
|
$this->data['DocumentData'] = $value; |
261
|
|
|
$this->options['form_params']['DocumentData'] = $value; |
262
|
|
|
|
263
|
|
|
return $this; |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* @param string $value |
268
|
|
|
* |
269
|
|
|
* @return $this |
270
|
|
|
*/ |
271
|
|
|
public function withDocumentFileUrl($value) |
272
|
|
|
{ |
273
|
|
|
$this->data['DocumentFileUrl'] = $value; |
274
|
|
|
$this->options['form_params']['DocumentFileUrl'] = $value; |
275
|
|
|
|
276
|
|
|
return $this; |
277
|
|
|
} |
278
|
|
|
|
279
|
|
|
/** |
280
|
|
|
* @param string $value |
281
|
|
|
* |
282
|
|
|
* @return $this |
283
|
|
|
*/ |
284
|
|
|
public function withProjectId($value) |
285
|
|
|
{ |
286
|
|
|
$this->data['ProjectId'] = $value; |
287
|
|
|
$this->options['form_params']['ProjectId'] = $value; |
288
|
|
|
|
289
|
|
|
return $this; |
290
|
|
|
} |
291
|
|
|
} |
292
|
|
|
|