GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 08c7db...d094ff )
by
unknown
08:57
created

EvaluateVideoQuality   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 10
dl 0
loc 40
rs 10
c 0
b 0
f 0

3 Methods

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