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 ( 93bb72...aa217a )
by
unknown
07:32 queued 03:27
created

GenerateVideo::withSmartEffect()   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\Videoenhan\V20200320;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AbstractEcommerceVideo abstractEcommerceVideo(array $options = [])
9
 * @method AbstractFilmVideo abstractFilmVideo(array $options = [])
10
 * @method AdjustVideoColor adjustVideoColor(array $options = [])
11
 * @method EraseVideoLogo eraseVideoLogo(array $options = [])
12
 * @method EraseVideoSubtitles eraseVideoSubtitles(array $options = [])
13
 * @method GenerateVideo generateVideo(array $options = [])
14
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
15
 * @method SuperResolveVideo superResolveVideo(array $options = [])
16
 */
17
class VideoenhanApiResolver extends ApiResolver
18
{
19
}
20
21
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
22
{
23
    /** @var string */
24
    public $product = 'videoenhan';
25
26
    /** @var string */
27
    public $version = '2020-03-20';
28
29
    /** @var string */
30
    public $method = 'POST';
31
32
    /** @var string */
33
    public $serviceCode = 'videoenhan';
34
}
35
36
/**
37
 * @method string getDuration()
38
 * @method string getAsync()
39
 * @method string getVideoUrl()
40
 * @method string getWidth()
41
 * @method string getHeight()
42
 */
43
class AbstractEcommerceVideo extends Rpc
44
{
45
46
    /**
47
     * @param string $value
48
     *
49
     * @return $this
50
     */
51
    public function withDuration($value)
52
    {
53
        $this->data['Duration'] = $value;
54
        $this->options['form_params']['Duration'] = $value;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @param string $value
61
     *
62
     * @return $this
63
     */
64
    public function withAsync($value)
65
    {
66
        $this->data['Async'] = $value;
67
        $this->options['form_params']['Async'] = $value;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @param string $value
74
     *
75
     * @return $this
76
     */
77
    public function withVideoUrl($value)
78
    {
79
        $this->data['VideoUrl'] = $value;
80
        $this->options['form_params']['VideoUrl'] = $value;
81
82
        return $this;
83
    }
84
85
    /**
86
     * @param string $value
87
     *
88
     * @return $this
89
     */
90
    public function withWidth($value)
91
    {
92
        $this->data['Width'] = $value;
93
        $this->options['form_params']['Width'] = $value;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @param string $value
100
     *
101
     * @return $this
102
     */
103
    public function withHeight($value)
104
    {
105
        $this->data['Height'] = $value;
106
        $this->options['form_params']['Height'] = $value;
107
108
        return $this;
109
    }
110
}
111
112
/**
113
 * @method string getLength()
114
 * @method string getAsync()
115
 * @method string getVideoUrl()
116
 */
117
class AbstractFilmVideo extends Rpc
118
{
119
120
    /**
121
     * @param string $value
122
     *
123
     * @return $this
124
     */
125
    public function withLength($value)
126
    {
127
        $this->data['Length'] = $value;
128
        $this->options['form_params']['Length'] = $value;
129
130
        return $this;
131
    }
132
133
    /**
134
     * @param string $value
135
     *
136
     * @return $this
137
     */
138
    public function withAsync($value)
139
    {
140
        $this->data['Async'] = $value;
141
        $this->options['form_params']['Async'] = $value;
142
143
        return $this;
144
    }
145
146
    /**
147
     * @param string $value
148
     *
149
     * @return $this
150
     */
151
    public function withVideoUrl($value)
152
    {
153
        $this->data['VideoUrl'] = $value;
154
        $this->options['form_params']['VideoUrl'] = $value;
155
156
        return $this;
157
    }
158
}
159
160
/**
161
 * @method string getMode()
162
 * @method string getAsync()
163
 * @method string getVideoUrl()
164
 * @method string getVideoBitrate()
165
 * @method string getVideoCodec()
166
 * @method string getVideoFormat()
167
 */
168
class AdjustVideoColor extends Rpc
169
{
170
171
    /**
172
     * @param string $value
173
     *
174
     * @return $this
175
     */
176
    public function withMode($value)
177
    {
178
        $this->data['Mode'] = $value;
179
        $this->options['form_params']['Mode'] = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withAsync($value)
190
    {
191
        $this->data['Async'] = $value;
192
        $this->options['form_params']['Async'] = $value;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withVideoUrl($value)
203
    {
204
        $this->data['VideoUrl'] = $value;
205
        $this->options['form_params']['VideoUrl'] = $value;
206
207
        return $this;
208
    }
209
210
    /**
211
     * @param string $value
212
     *
213
     * @return $this
214
     */
215
    public function withVideoBitrate($value)
216
    {
217
        $this->data['VideoBitrate'] = $value;
218
        $this->options['form_params']['VideoBitrate'] = $value;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @param string $value
225
     *
226
     * @return $this
227
     */
228
    public function withVideoCodec($value)
229
    {
230
        $this->data['VideoCodec'] = $value;
231
        $this->options['form_params']['VideoCodec'] = $value;
232
233
        return $this;
234
    }
235
236
    /**
237
     * @param string $value
238
     *
239
     * @return $this
240
     */
241
    public function withVideoFormat($value)
242
    {
243
        $this->data['VideoFormat'] = $value;
244
        $this->options['form_params']['VideoFormat'] = $value;
245
246
        return $this;
247
    }
248
}
249
250
/**
251
 * @method array getBoxes()
252
 * @method string getAsync()
253
 * @method string getVideoUrl()
254
 */
255
class EraseVideoLogo extends Rpc
256
{
257
258
    /**
259
     * @param array $boxes
260
     *
261
     * @return $this
262
     */
263
	public function withBoxes(array $boxes)
264
	{
265
	    $this->data['Boxes'] = $boxes;
266
		foreach ($boxes as $depth1 => $depth1Value) {
267
			if(isset($depth1Value['W'])){
268
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.W'] = $depth1Value['W'];
269
			}
270
			if(isset($depth1Value['H'])){
271
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.H'] = $depth1Value['H'];
272
			}
273
			if(isset($depth1Value['X'])){
274
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
275
			}
276
			if(isset($depth1Value['Y'])){
277
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
278
			}
279
		}
280
281
		return $this;
282
    }
283
284
    /**
285
     * @param string $value
286
     *
287
     * @return $this
288
     */
289
    public function withAsync($value)
290
    {
291
        $this->data['Async'] = $value;
292
        $this->options['form_params']['Async'] = $value;
293
294
        return $this;
295
    }
296
297
    /**
298
     * @param string $value
299
     *
300
     * @return $this
301
     */
302
    public function withVideoUrl($value)
303
    {
304
        $this->data['VideoUrl'] = $value;
305
        $this->options['form_params']['VideoUrl'] = $value;
306
307
        return $this;
308
    }
309
}
310
311
/**
312
 * @method string getBH()
313
 * @method string getAsync()
314
 * @method string getVideoUrl()
315
 * @method string getBW()
316
 * @method string getBX()
317
 * @method string getBY()
318
 */
319
class EraseVideoSubtitles extends Rpc
320
{
321
322
    /**
323
     * @param string $value
324
     *
325
     * @return $this
326
     */
327
    public function withBH($value)
328
    {
329
        $this->data['BH'] = $value;
330
        $this->options['form_params']['BH'] = $value;
331
332
        return $this;
333
    }
334
335
    /**
336
     * @param string $value
337
     *
338
     * @return $this
339
     */
340
    public function withAsync($value)
341
    {
342
        $this->data['Async'] = $value;
343
        $this->options['form_params']['Async'] = $value;
344
345
        return $this;
346
    }
347
348
    /**
349
     * @param string $value
350
     *
351
     * @return $this
352
     */
353
    public function withVideoUrl($value)
354
    {
355
        $this->data['VideoUrl'] = $value;
356
        $this->options['form_params']['VideoUrl'] = $value;
357
358
        return $this;
359
    }
360
361
    /**
362
     * @param string $value
363
     *
364
     * @return $this
365
     */
366
    public function withBW($value)
367
    {
368
        $this->data['BW'] = $value;
369
        $this->options['form_params']['BW'] = $value;
370
371
        return $this;
372
    }
373
374
    /**
375
     * @param string $value
376
     *
377
     * @return $this
378
     */
379
    public function withBX($value)
380
    {
381
        $this->data['BX'] = $value;
382
        $this->options['form_params']['BX'] = $value;
383
384
        return $this;
385
    }
386
387
    /**
388
     * @param string $value
389
     *
390
     * @return $this
391
     */
392
    public function withBY($value)
393
    {
394
        $this->data['BY'] = $value;
395
        $this->options['form_params']['BY'] = $value;
396
397
        return $this;
398
    }
399
}
400
401
/**
402
 * @method string getTransitionStyle()
403
 * @method string getScene()
404
 * @method string getDuration()
405
 * @method string getPuzzleEffect()
406
 * @method string getHeight()
407
 * @method string getDurationAdaption()
408
 * @method array getFileList()
409
 * @method string getMute()
410
 * @method string getAsync()
411
 * @method string getSmartEffect()
412
 * @method string getWidth()
413
 * @method string getStyle()
414
 */
415
class GenerateVideo extends Rpc
416
{
417
418
    /**
419
     * @param string $value
420
     *
421
     * @return $this
422
     */
423
    public function withTransitionStyle($value)
424
    {
425
        $this->data['TransitionStyle'] = $value;
426
        $this->options['form_params']['TransitionStyle'] = $value;
427
428
        return $this;
429
    }
430
431
    /**
432
     * @param string $value
433
     *
434
     * @return $this
435
     */
436
    public function withScene($value)
437
    {
438
        $this->data['Scene'] = $value;
439
        $this->options['form_params']['Scene'] = $value;
440
441
        return $this;
442
    }
443
444
    /**
445
     * @param string $value
446
     *
447
     * @return $this
448
     */
449
    public function withDuration($value)
450
    {
451
        $this->data['Duration'] = $value;
452
        $this->options['form_params']['Duration'] = $value;
453
454
        return $this;
455
    }
456
457
    /**
458
     * @param string $value
459
     *
460
     * @return $this
461
     */
462
    public function withPuzzleEffect($value)
463
    {
464
        $this->data['PuzzleEffect'] = $value;
465
        $this->options['form_params']['PuzzleEffect'] = $value;
466
467
        return $this;
468
    }
469
470
    /**
471
     * @param string $value
472
     *
473
     * @return $this
474
     */
475
    public function withHeight($value)
476
    {
477
        $this->data['Height'] = $value;
478
        $this->options['form_params']['Height'] = $value;
479
480
        return $this;
481
    }
482
483
    /**
484
     * @param string $value
485
     *
486
     * @return $this
487
     */
488
    public function withDurationAdaption($value)
489
    {
490
        $this->data['DurationAdaption'] = $value;
491
        $this->options['form_params']['DurationAdaption'] = $value;
492
493
        return $this;
494
    }
495
496
    /**
497
     * @param array $fileList
498
     *
499
     * @return $this
500
     */
501
	public function withFileList(array $fileList)
502
	{
503
	    $this->data['FileList'] = $fileList;
504
		foreach ($fileList as $depth1 => $depth1Value) {
505
			if(isset($depth1Value['FileName'])){
506
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileName'] = $depth1Value['FileName'];
507
			}
508
			if(isset($depth1Value['FileUrl'])){
509
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileUrl'] = $depth1Value['FileUrl'];
510
			}
511
			if(isset($depth1Value['Type'])){
512
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
513
			}
514
		}
515
516
		return $this;
517
    }
518
519
    /**
520
     * @param string $value
521
     *
522
     * @return $this
523
     */
524
    public function withMute($value)
525
    {
526
        $this->data['Mute'] = $value;
527
        $this->options['form_params']['Mute'] = $value;
528
529
        return $this;
530
    }
531
532
    /**
533
     * @param string $value
534
     *
535
     * @return $this
536
     */
537
    public function withAsync($value)
538
    {
539
        $this->data['Async'] = $value;
540
        $this->options['form_params']['Async'] = $value;
541
542
        return $this;
543
    }
544
545
    /**
546
     * @param string $value
547
     *
548
     * @return $this
549
     */
550
    public function withSmartEffect($value)
551
    {
552
        $this->data['SmartEffect'] = $value;
553
        $this->options['form_params']['SmartEffect'] = $value;
554
555
        return $this;
556
    }
557
558
    /**
559
     * @param string $value
560
     *
561
     * @return $this
562
     */
563
    public function withWidth($value)
564
    {
565
        $this->data['Width'] = $value;
566
        $this->options['form_params']['Width'] = $value;
567
568
        return $this;
569
    }
570
571
    /**
572
     * @param string $value
573
     *
574
     * @return $this
575
     */
576
    public function withStyle($value)
577
    {
578
        $this->data['Style'] = $value;
579
        $this->options['form_params']['Style'] = $value;
580
581
        return $this;
582
    }
583
}
584
585
/**
586
 * @method string getAsync()
587
 * @method string getJobId()
588
 */
589
class GetAsyncJobResult extends Rpc
590
{
591
592
    /**
593
     * @param string $value
594
     *
595
     * @return $this
596
     */
597
    public function withAsync($value)
598
    {
599
        $this->data['Async'] = $value;
600
        $this->options['form_params']['Async'] = $value;
601
602
        return $this;
603
    }
604
605
    /**
606
     * @param string $value
607
     *
608
     * @return $this
609
     */
610
    public function withJobId($value)
611
    {
612
        $this->data['JobId'] = $value;
613
        $this->options['form_params']['JobId'] = $value;
614
615
        return $this;
616
    }
617
}
618
619
/**
620
 * @method string getBitRate()
621
 * @method string getAsync()
622
 * @method string getVideoUrl()
623
 */
624
class SuperResolveVideo extends Rpc
625
{
626
627
    /**
628
     * @param string $value
629
     *
630
     * @return $this
631
     */
632
    public function withBitRate($value)
633
    {
634
        $this->data['BitRate'] = $value;
635
        $this->options['form_params']['BitRate'] = $value;
636
637
        return $this;
638
    }
639
640
    /**
641
     * @param string $value
642
     *
643
     * @return $this
644
     */
645
    public function withAsync($value)
646
    {
647
        $this->data['Async'] = $value;
648
        $this->options['form_params']['Async'] = $value;
649
650
        return $this;
651
    }
652
653
    /**
654
     * @param string $value
655
     *
656
     * @return $this
657
     */
658
    public function withVideoUrl($value)
659
    {
660
        $this->data['VideoUrl'] = $value;
661
        $this->options['form_params']['VideoUrl'] = $value;
662
663
        return $this;
664
    }
665
}
666