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 ( 133295...dc8cda )
by
unknown
07:17
created

SplitVideoParts::withAsync()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 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 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 getAsync()
214
 * @method string getVideoUrl()
215
 */
216
class SplitVideoParts extends Rpc
217
{
218
219
    /**
220
     * @param string $value
221
     *
222
     * @return $this
223
     */
224
    public function withAsync($value)
225
    {
226
        $this->data['Async'] = $value;
227
        $this->options['form_params']['Async'] = $value;
228
229
        return $this;
230
    }
231
232
    /**
233
     * @param string $value
234
     *
235
     * @return $this
236
     */
237
    public function withVideoUrl($value)
238
    {
239
        $this->data['VideoUrl'] = $value;
240
        $this->options['form_params']['VideoUrl'] = $value;
241
242
        return $this;
243
    }
244
}
245
246
/**
247
 * @method string getAsync()
248
 * @method string getVideoURL()
249
 */
250
class UnderstandVideoContent extends Rpc
251
{
252
253
    /**
254
     * @param string $value
255
     *
256
     * @return $this
257
     */
258
    public function withAsync($value)
259
    {
260
        $this->data['Async'] = $value;
261
        $this->options['form_params']['Async'] = $value;
262
263
        return $this;
264
    }
265
266
    /**
267
     * @param string $value
268
     *
269
     * @return $this
270
     */
271
    public function withVideoURL($value)
272
    {
273
        $this->data['VideoURL'] = $value;
274
        $this->options['form_params']['VideoURL'] = $value;
275
276
        return $this;
277
    }
278
}
279