|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Videorecog\V20200320; |
|
4
|
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* @method DetectVideoShot detectVideoShot(array $options = []) |
|
9
|
|
|
* @method GenerateVideoCover generateVideoCover(array $options = []) |
|
10
|
|
|
* @method GetAsyncJobResult getAsyncJobResult(array $options = []) |
|
11
|
|
|
* @method RecognizeVideoCastCrewList recognizeVideoCastCrewList(array $options = []) |
|
12
|
|
|
* @method SplitVideoParts splitVideoParts(array $options = []) |
|
13
|
|
|
* @method UnderstandVideoContent understandVideoContent(array $options = []) |
|
14
|
|
|
*/ |
|
15
|
|
|
class VideorecogApiResolver extends ApiResolver |
|
16
|
|
|
{ |
|
17
|
|
|
} |
|
18
|
|
|
|
|
19
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
|
20
|
|
|
{ |
|
21
|
|
|
/** @var string */ |
|
22
|
|
|
public $product = 'videorecog'; |
|
23
|
|
|
|
|
24
|
|
|
/** @var string */ |
|
25
|
|
|
public $version = '2020-03-20'; |
|
26
|
|
|
|
|
27
|
|
|
/** @var string */ |
|
28
|
|
|
public $method = 'POST'; |
|
29
|
|
|
|
|
30
|
|
|
/** @var string */ |
|
31
|
|
|
public $serviceCode = 'videorecog'; |
|
32
|
|
|
} |
|
33
|
|
|
|
|
34
|
|
|
/** |
|
35
|
|
|
* @method string getAsync() |
|
36
|
|
|
* @method string getVideoUrl() |
|
37
|
|
|
*/ |
|
38
|
|
|
class DetectVideoShot extends Rpc |
|
39
|
|
|
{ |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* @param string $value |
|
43
|
|
|
* |
|
44
|
|
|
* @return $this |
|
45
|
|
|
*/ |
|
46
|
|
|
public function withAsync($value) |
|
47
|
|
|
{ |
|
48
|
|
|
$this->data['Async'] = $value; |
|
49
|
|
|
$this->options['form_params']['Async'] = $value; |
|
50
|
|
|
|
|
51
|
|
|
return $this; |
|
52
|
|
|
} |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @param string $value |
|
56
|
|
|
* |
|
57
|
|
|
* @return $this |
|
58
|
|
|
*/ |
|
59
|
|
|
public function withVideoUrl($value) |
|
60
|
|
|
{ |
|
61
|
|
|
$this->data['VideoUrl'] = $value; |
|
62
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
|
63
|
|
|
|
|
64
|
|
|
return $this; |
|
65
|
|
|
} |
|
66
|
|
|
} |
|
67
|
|
|
|
|
68
|
|
|
/** |
|
69
|
|
|
* @method string getIsGif() |
|
70
|
|
|
* @method string getAsync() |
|
71
|
|
|
* @method string getVideoUrl() |
|
72
|
|
|
*/ |
|
73
|
|
|
class GenerateVideoCover extends Rpc |
|
74
|
|
|
{ |
|
75
|
|
|
|
|
76
|
|
|
/** |
|
77
|
|
|
* @param string $value |
|
78
|
|
|
* |
|
79
|
|
|
* @return $this |
|
80
|
|
|
*/ |
|
81
|
|
|
public function withIsGif($value) |
|
82
|
|
|
{ |
|
83
|
|
|
$this->data['IsGif'] = $value; |
|
84
|
|
|
$this->options['form_params']['IsGif'] = $value; |
|
85
|
|
|
|
|
86
|
|
|
return $this; |
|
87
|
|
|
} |
|
88
|
|
|
|
|
89
|
|
|
/** |
|
90
|
|
|
* @param string $value |
|
91
|
|
|
* |
|
92
|
|
|
* @return $this |
|
93
|
|
|
*/ |
|
94
|
|
|
public function withAsync($value) |
|
95
|
|
|
{ |
|
96
|
|
|
$this->data['Async'] = $value; |
|
97
|
|
|
$this->options['form_params']['Async'] = $value; |
|
98
|
|
|
|
|
99
|
|
|
return $this; |
|
100
|
|
|
} |
|
101
|
|
|
|
|
102
|
|
|
/** |
|
103
|
|
|
* @param string $value |
|
104
|
|
|
* |
|
105
|
|
|
* @return $this |
|
106
|
|
|
*/ |
|
107
|
|
|
public function withVideoUrl($value) |
|
108
|
|
|
{ |
|
109
|
|
|
$this->data['VideoUrl'] = $value; |
|
110
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
|
111
|
|
|
|
|
112
|
|
|
return $this; |
|
113
|
|
|
} |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* @method string getJobId() |
|
118
|
|
|
* @method string getAsync() |
|
119
|
|
|
*/ |
|
120
|
|
|
class GetAsyncJobResult extends Rpc |
|
121
|
|
|
{ |
|
122
|
|
|
|
|
123
|
|
|
/** |
|
124
|
|
|
* @param string $value |
|
125
|
|
|
* |
|
126
|
|
|
* @return $this |
|
127
|
|
|
*/ |
|
128
|
|
|
public function withJobId($value) |
|
129
|
|
|
{ |
|
130
|
|
|
$this->data['JobId'] = $value; |
|
131
|
|
|
$this->options['form_params']['JobId'] = $value; |
|
132
|
|
|
|
|
133
|
|
|
return $this; |
|
134
|
|
|
} |
|
135
|
|
|
|
|
136
|
|
|
/** |
|
137
|
|
|
* @param string $value |
|
138
|
|
|
* |
|
139
|
|
|
* @return $this |
|
140
|
|
|
*/ |
|
141
|
|
|
public function withAsync($value) |
|
142
|
|
|
{ |
|
143
|
|
|
$this->data['Async'] = $value; |
|
144
|
|
|
$this->options['form_params']['Async'] = $value; |
|
145
|
|
|
|
|
146
|
|
|
return $this; |
|
147
|
|
|
} |
|
148
|
|
|
} |
|
149
|
|
|
|
|
150
|
|
|
/** |
|
151
|
|
|
* @method string getParams() |
|
152
|
|
|
* @method string getAsync() |
|
153
|
|
|
* @method string getRegisterUrl() |
|
154
|
|
|
* @method string getVideoUrl() |
|
155
|
|
|
*/ |
|
156
|
|
|
class RecognizeVideoCastCrewList extends Rpc |
|
157
|
|
|
{ |
|
158
|
|
|
|
|
159
|
|
|
/** |
|
160
|
|
|
* @param string $value |
|
161
|
|
|
* |
|
162
|
|
|
* @return $this |
|
163
|
|
|
*/ |
|
164
|
|
|
public function withParams($value) |
|
165
|
|
|
{ |
|
166
|
|
|
$this->data['Params'] = $value; |
|
167
|
|
|
$this->options['form_params']['Params'] = $value; |
|
168
|
|
|
|
|
169
|
|
|
return $this; |
|
170
|
|
|
} |
|
171
|
|
|
|
|
172
|
|
|
/** |
|
173
|
|
|
* @param string $value |
|
174
|
|
|
* |
|
175
|
|
|
* @return $this |
|
176
|
|
|
*/ |
|
177
|
|
|
public function withAsync($value) |
|
178
|
|
|
{ |
|
179
|
|
|
$this->data['Async'] = $value; |
|
180
|
|
|
$this->options['form_params']['Async'] = $value; |
|
181
|
|
|
|
|
182
|
|
|
return $this; |
|
183
|
|
|
} |
|
184
|
|
|
|
|
185
|
|
|
/** |
|
186
|
|
|
* @param string $value |
|
187
|
|
|
* |
|
188
|
|
|
* @return $this |
|
189
|
|
|
*/ |
|
190
|
|
|
public function withRegisterUrl($value) |
|
191
|
|
|
{ |
|
192
|
|
|
$this->data['RegisterUrl'] = $value; |
|
193
|
|
|
$this->options['form_params']['RegisterUrl'] = $value; |
|
194
|
|
|
|
|
195
|
|
|
return $this; |
|
196
|
|
|
} |
|
197
|
|
|
|
|
198
|
|
|
/** |
|
199
|
|
|
* @param string $value |
|
200
|
|
|
* |
|
201
|
|
|
* @return $this |
|
202
|
|
|
*/ |
|
203
|
|
|
public function withVideoUrl($value) |
|
204
|
|
|
{ |
|
205
|
|
|
$this->data['VideoUrl'] = $value; |
|
206
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
|
207
|
|
|
|
|
208
|
|
|
return $this; |
|
209
|
|
|
} |
|
210
|
|
|
} |
|
211
|
|
|
|
|
212
|
|
|
/** |
|
213
|
|
|
* @method string getTemplate() |
|
214
|
|
|
* @method string getAsync() |
|
215
|
|
|
* @method string getVideoUrl() |
|
216
|
|
|
*/ |
|
217
|
|
|
class SplitVideoParts extends Rpc |
|
218
|
|
|
{ |
|
219
|
|
|
|
|
220
|
|
|
/** |
|
221
|
|
|
* @param string $value |
|
222
|
|
|
* |
|
223
|
|
|
* @return $this |
|
224
|
|
|
*/ |
|
225
|
|
|
public function withTemplate($value) |
|
226
|
|
|
{ |
|
227
|
|
|
$this->data['Template'] = $value; |
|
228
|
|
|
$this->options['form_params']['Template'] = $value; |
|
229
|
|
|
|
|
230
|
|
|
return $this; |
|
231
|
|
|
} |
|
232
|
|
|
|
|
233
|
|
|
/** |
|
234
|
|
|
* @param string $value |
|
235
|
|
|
* |
|
236
|
|
|
* @return $this |
|
237
|
|
|
*/ |
|
238
|
|
|
public function withAsync($value) |
|
239
|
|
|
{ |
|
240
|
|
|
$this->data['Async'] = $value; |
|
241
|
|
|
$this->options['form_params']['Async'] = $value; |
|
242
|
|
|
|
|
243
|
|
|
return $this; |
|
244
|
|
|
} |
|
245
|
|
|
|
|
246
|
|
|
/** |
|
247
|
|
|
* @param string $value |
|
248
|
|
|
* |
|
249
|
|
|
* @return $this |
|
250
|
|
|
*/ |
|
251
|
|
|
public function withVideoUrl($value) |
|
252
|
|
|
{ |
|
253
|
|
|
$this->data['VideoUrl'] = $value; |
|
254
|
|
|
$this->options['form_params']['VideoUrl'] = $value; |
|
255
|
|
|
|
|
256
|
|
|
return $this; |
|
257
|
|
|
} |
|
258
|
|
|
} |
|
259
|
|
|
|
|
260
|
|
|
/** |
|
261
|
|
|
* @method string getAsync() |
|
262
|
|
|
* @method string getVideoURL() |
|
263
|
|
|
*/ |
|
264
|
|
|
class UnderstandVideoContent extends Rpc |
|
265
|
|
|
{ |
|
266
|
|
|
|
|
267
|
|
|
/** |
|
268
|
|
|
* @param string $value |
|
269
|
|
|
* |
|
270
|
|
|
* @return $this |
|
271
|
|
|
*/ |
|
272
|
|
|
public function withAsync($value) |
|
273
|
|
|
{ |
|
274
|
|
|
$this->data['Async'] = $value; |
|
275
|
|
|
$this->options['form_params']['Async'] = $value; |
|
276
|
|
|
|
|
277
|
|
|
return $this; |
|
278
|
|
|
} |
|
279
|
|
|
|
|
280
|
|
|
/** |
|
281
|
|
|
* @param string $value |
|
282
|
|
|
* |
|
283
|
|
|
* @return $this |
|
284
|
|
|
*/ |
|
285
|
|
|
public function withVideoURL($value) |
|
286
|
|
|
{ |
|
287
|
|
|
$this->data['VideoURL'] = $value; |
|
288
|
|
|
$this->options['form_params']['VideoURL'] = $value; |
|
289
|
|
|
|
|
290
|
|
|
return $this; |
|
291
|
|
|
} |
|
292
|
|
|
} |
|
293
|
|
|
|