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 ( b51ac4...8ee88d )
by
unknown
05:42
created

ChangeVideoSize::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\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 ChangeVideoSize changeVideoSize(array $options = [])
12
 * @method EraseVideoLogo eraseVideoLogo(array $options = [])
13
 * @method EraseVideoSubtitles eraseVideoSubtitles(array $options = [])
14
 * @method GenerateVideo generateVideo(array $options = [])
15
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
16
 * @method SuperResolveVideo superResolveVideo(array $options = [])
17
 */
18
class VideoenhanApiResolver extends ApiResolver
19
{
20
}
21
22
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
23
{
24
    /** @var string */
25
    public $product = 'videoenhan';
26
27
    /** @var string */
28
    public $version = '2020-03-20';
29
30
    /** @var string */
31
    public $method = 'POST';
32
33
    /** @var string */
34
    public $serviceCode = 'videoenhan';
35
}
36
37
/**
38
 * @method string getDuration()
39
 * @method string getAsync()
40
 * @method string getVideoUrl()
41
 * @method string getWidth()
42
 * @method string getHeight()
43
 */
44
class AbstractEcommerceVideo extends Rpc
45
{
46
47
    /**
48
     * @param string $value
49
     *
50
     * @return $this
51
     */
52
    public function withDuration($value)
53
    {
54
        $this->data['Duration'] = $value;
55
        $this->options['form_params']['Duration'] = $value;
56
57
        return $this;
58
    }
59
60
    /**
61
     * @param string $value
62
     *
63
     * @return $this
64
     */
65
    public function withAsync($value)
66
    {
67
        $this->data['Async'] = $value;
68
        $this->options['form_params']['Async'] = $value;
69
70
        return $this;
71
    }
72
73
    /**
74
     * @param string $value
75
     *
76
     * @return $this
77
     */
78
    public function withVideoUrl($value)
79
    {
80
        $this->data['VideoUrl'] = $value;
81
        $this->options['form_params']['VideoUrl'] = $value;
82
83
        return $this;
84
    }
85
86
    /**
87
     * @param string $value
88
     *
89
     * @return $this
90
     */
91
    public function withWidth($value)
92
    {
93
        $this->data['Width'] = $value;
94
        $this->options['form_params']['Width'] = $value;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @param string $value
101
     *
102
     * @return $this
103
     */
104
    public function withHeight($value)
105
    {
106
        $this->data['Height'] = $value;
107
        $this->options['form_params']['Height'] = $value;
108
109
        return $this;
110
    }
111
}
112
113
/**
114
 * @method string getLength()
115
 * @method string getAsync()
116
 * @method string getVideoUrl()
117
 */
118
class AbstractFilmVideo extends Rpc
119
{
120
121
    /**
122
     * @param string $value
123
     *
124
     * @return $this
125
     */
126
    public function withLength($value)
127
    {
128
        $this->data['Length'] = $value;
129
        $this->options['form_params']['Length'] = $value;
130
131
        return $this;
132
    }
133
134
    /**
135
     * @param string $value
136
     *
137
     * @return $this
138
     */
139
    public function withAsync($value)
140
    {
141
        $this->data['Async'] = $value;
142
        $this->options['form_params']['Async'] = $value;
143
144
        return $this;
145
    }
146
147
    /**
148
     * @param string $value
149
     *
150
     * @return $this
151
     */
152
    public function withVideoUrl($value)
153
    {
154
        $this->data['VideoUrl'] = $value;
155
        $this->options['form_params']['VideoUrl'] = $value;
156
157
        return $this;
158
    }
159
}
160
161
/**
162
 * @method string getMode()
163
 * @method string getAsync()
164
 * @method string getVideoUrl()
165
 * @method string getVideoBitrate()
166
 * @method string getVideoCodec()
167
 * @method string getVideoFormat()
168
 */
169
class AdjustVideoColor extends Rpc
170
{
171
172
    /**
173
     * @param string $value
174
     *
175
     * @return $this
176
     */
177
    public function withMode($value)
178
    {
179
        $this->data['Mode'] = $value;
180
        $this->options['form_params']['Mode'] = $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
     * @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
     * @param string $value
213
     *
214
     * @return $this
215
     */
216
    public function withVideoBitrate($value)
217
    {
218
        $this->data['VideoBitrate'] = $value;
219
        $this->options['form_params']['VideoBitrate'] = $value;
220
221
        return $this;
222
    }
223
224
    /**
225
     * @param string $value
226
     *
227
     * @return $this
228
     */
229
    public function withVideoCodec($value)
230
    {
231
        $this->data['VideoCodec'] = $value;
232
        $this->options['form_params']['VideoCodec'] = $value;
233
234
        return $this;
235
    }
236
237
    /**
238
     * @param string $value
239
     *
240
     * @return $this
241
     */
242
    public function withVideoFormat($value)
243
    {
244
        $this->data['VideoFormat'] = $value;
245
        $this->options['form_params']['VideoFormat'] = $value;
246
247
        return $this;
248
    }
249
}
250
251
/**
252
 * @method string getHeight()
253
 * @method string getB()
254
 * @method string getFillType()
255
 * @method string getG()
256
 * @method string getCropType()
257
 * @method string getAsync()
258
 * @method string getR()
259
 * @method string getVideoUrl()
260
 * @method string getWidth()
261
 * @method string getTightness()
262
 */
263
class ChangeVideoSize extends Rpc
264
{
265
266
    /**
267
     * @param string $value
268
     *
269
     * @return $this
270
     */
271
    public function withHeight($value)
272
    {
273
        $this->data['Height'] = $value;
274
        $this->options['form_params']['Height'] = $value;
275
276
        return $this;
277
    }
278
279
    /**
280
     * @param string $value
281
     *
282
     * @return $this
283
     */
284
    public function withB($value)
285
    {
286
        $this->data['B'] = $value;
287
        $this->options['form_params']['B'] = $value;
288
289
        return $this;
290
    }
291
292
    /**
293
     * @param string $value
294
     *
295
     * @return $this
296
     */
297
    public function withFillType($value)
298
    {
299
        $this->data['FillType'] = $value;
300
        $this->options['form_params']['FillType'] = $value;
301
302
        return $this;
303
    }
304
305
    /**
306
     * @param string $value
307
     *
308
     * @return $this
309
     */
310
    public function withG($value)
311
    {
312
        $this->data['G'] = $value;
313
        $this->options['form_params']['G'] = $value;
314
315
        return $this;
316
    }
317
318
    /**
319
     * @param string $value
320
     *
321
     * @return $this
322
     */
323
    public function withCropType($value)
324
    {
325
        $this->data['CropType'] = $value;
326
        $this->options['form_params']['CropType'] = $value;
327
328
        return $this;
329
    }
330
331
    /**
332
     * @param string $value
333
     *
334
     * @return $this
335
     */
336
    public function withAsync($value)
337
    {
338
        $this->data['Async'] = $value;
339
        $this->options['form_params']['Async'] = $value;
340
341
        return $this;
342
    }
343
344
    /**
345
     * @param string $value
346
     *
347
     * @return $this
348
     */
349
    public function withR($value)
350
    {
351
        $this->data['R'] = $value;
352
        $this->options['form_params']['R'] = $value;
353
354
        return $this;
355
    }
356
357
    /**
358
     * @param string $value
359
     *
360
     * @return $this
361
     */
362
    public function withVideoUrl($value)
363
    {
364
        $this->data['VideoUrl'] = $value;
365
        $this->options['form_params']['VideoUrl'] = $value;
366
367
        return $this;
368
    }
369
370
    /**
371
     * @param string $value
372
     *
373
     * @return $this
374
     */
375
    public function withWidth($value)
376
    {
377
        $this->data['Width'] = $value;
378
        $this->options['form_params']['Width'] = $value;
379
380
        return $this;
381
    }
382
383
    /**
384
     * @param string $value
385
     *
386
     * @return $this
387
     */
388
    public function withTightness($value)
389
    {
390
        $this->data['Tightness'] = $value;
391
        $this->options['form_params']['Tightness'] = $value;
392
393
        return $this;
394
    }
395
}
396
397
/**
398
 * @method array getBoxes()
399
 * @method string getAsync()
400
 * @method string getVideoUrl()
401
 */
402
class EraseVideoLogo extends Rpc
403
{
404
405
    /**
406
     * @param array $boxes
407
     *
408
     * @return $this
409
     */
410
	public function withBoxes(array $boxes)
411
	{
412
	    $this->data['Boxes'] = $boxes;
413
		foreach ($boxes as $depth1 => $depth1Value) {
414
			if(isset($depth1Value['W'])){
415
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.W'] = $depth1Value['W'];
416
			}
417
			if(isset($depth1Value['H'])){
418
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.H'] = $depth1Value['H'];
419
			}
420
			if(isset($depth1Value['X'])){
421
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
422
			}
423
			if(isset($depth1Value['Y'])){
424
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
425
			}
426
		}
427
428
		return $this;
429
    }
430
431
    /**
432
     * @param string $value
433
     *
434
     * @return $this
435
     */
436
    public function withAsync($value)
437
    {
438
        $this->data['Async'] = $value;
439
        $this->options['form_params']['Async'] = $value;
440
441
        return $this;
442
    }
443
444
    /**
445
     * @param string $value
446
     *
447
     * @return $this
448
     */
449
    public function withVideoUrl($value)
450
    {
451
        $this->data['VideoUrl'] = $value;
452
        $this->options['form_params']['VideoUrl'] = $value;
453
454
        return $this;
455
    }
456
}
457
458
/**
459
 * @method string getBH()
460
 * @method string getAsync()
461
 * @method string getVideoUrl()
462
 * @method string getBW()
463
 * @method string getBX()
464
 * @method string getBY()
465
 */
466
class EraseVideoSubtitles extends Rpc
467
{
468
469
    /**
470
     * @param string $value
471
     *
472
     * @return $this
473
     */
474
    public function withBH($value)
475
    {
476
        $this->data['BH'] = $value;
477
        $this->options['form_params']['BH'] = $value;
478
479
        return $this;
480
    }
481
482
    /**
483
     * @param string $value
484
     *
485
     * @return $this
486
     */
487
    public function withAsync($value)
488
    {
489
        $this->data['Async'] = $value;
490
        $this->options['form_params']['Async'] = $value;
491
492
        return $this;
493
    }
494
495
    /**
496
     * @param string $value
497
     *
498
     * @return $this
499
     */
500
    public function withVideoUrl($value)
501
    {
502
        $this->data['VideoUrl'] = $value;
503
        $this->options['form_params']['VideoUrl'] = $value;
504
505
        return $this;
506
    }
507
508
    /**
509
     * @param string $value
510
     *
511
     * @return $this
512
     */
513
    public function withBW($value)
514
    {
515
        $this->data['BW'] = $value;
516
        $this->options['form_params']['BW'] = $value;
517
518
        return $this;
519
    }
520
521
    /**
522
     * @param string $value
523
     *
524
     * @return $this
525
     */
526
    public function withBX($value)
527
    {
528
        $this->data['BX'] = $value;
529
        $this->options['form_params']['BX'] = $value;
530
531
        return $this;
532
    }
533
534
    /**
535
     * @param string $value
536
     *
537
     * @return $this
538
     */
539
    public function withBY($value)
540
    {
541
        $this->data['BY'] = $value;
542
        $this->options['form_params']['BY'] = $value;
543
544
        return $this;
545
    }
546
}
547
548
/**
549
 * @method string getTransitionStyle()
550
 * @method string getScene()
551
 * @method string getDuration()
552
 * @method string getPuzzleEffect()
553
 * @method string getHeight()
554
 * @method string getDurationAdaption()
555
 * @method array getFileList()
556
 * @method string getMute()
557
 * @method string getAsync()
558
 * @method string getSmartEffect()
559
 * @method string getWidth()
560
 * @method string getStyle()
561
 */
562
class GenerateVideo extends Rpc
563
{
564
565
    /**
566
     * @param string $value
567
     *
568
     * @return $this
569
     */
570
    public function withTransitionStyle($value)
571
    {
572
        $this->data['TransitionStyle'] = $value;
573
        $this->options['form_params']['TransitionStyle'] = $value;
574
575
        return $this;
576
    }
577
578
    /**
579
     * @param string $value
580
     *
581
     * @return $this
582
     */
583
    public function withScene($value)
584
    {
585
        $this->data['Scene'] = $value;
586
        $this->options['form_params']['Scene'] = $value;
587
588
        return $this;
589
    }
590
591
    /**
592
     * @param string $value
593
     *
594
     * @return $this
595
     */
596
    public function withDuration($value)
597
    {
598
        $this->data['Duration'] = $value;
599
        $this->options['form_params']['Duration'] = $value;
600
601
        return $this;
602
    }
603
604
    /**
605
     * @param string $value
606
     *
607
     * @return $this
608
     */
609
    public function withPuzzleEffect($value)
610
    {
611
        $this->data['PuzzleEffect'] = $value;
612
        $this->options['form_params']['PuzzleEffect'] = $value;
613
614
        return $this;
615
    }
616
617
    /**
618
     * @param string $value
619
     *
620
     * @return $this
621
     */
622
    public function withHeight($value)
623
    {
624
        $this->data['Height'] = $value;
625
        $this->options['form_params']['Height'] = $value;
626
627
        return $this;
628
    }
629
630
    /**
631
     * @param string $value
632
     *
633
     * @return $this
634
     */
635
    public function withDurationAdaption($value)
636
    {
637
        $this->data['DurationAdaption'] = $value;
638
        $this->options['form_params']['DurationAdaption'] = $value;
639
640
        return $this;
641
    }
642
643
    /**
644
     * @param array $fileList
645
     *
646
     * @return $this
647
     */
648
	public function withFileList(array $fileList)
649
	{
650
	    $this->data['FileList'] = $fileList;
651
		foreach ($fileList as $depth1 => $depth1Value) {
652
			if(isset($depth1Value['FileName'])){
653
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileName'] = $depth1Value['FileName'];
654
			}
655
			if(isset($depth1Value['FileUrl'])){
656
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileUrl'] = $depth1Value['FileUrl'];
657
			}
658
			if(isset($depth1Value['Type'])){
659
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
660
			}
661
		}
662
663
		return $this;
664
    }
665
666
    /**
667
     * @param string $value
668
     *
669
     * @return $this
670
     */
671
    public function withMute($value)
672
    {
673
        $this->data['Mute'] = $value;
674
        $this->options['form_params']['Mute'] = $value;
675
676
        return $this;
677
    }
678
679
    /**
680
     * @param string $value
681
     *
682
     * @return $this
683
     */
684
    public function withAsync($value)
685
    {
686
        $this->data['Async'] = $value;
687
        $this->options['form_params']['Async'] = $value;
688
689
        return $this;
690
    }
691
692
    /**
693
     * @param string $value
694
     *
695
     * @return $this
696
     */
697
    public function withSmartEffect($value)
698
    {
699
        $this->data['SmartEffect'] = $value;
700
        $this->options['form_params']['SmartEffect'] = $value;
701
702
        return $this;
703
    }
704
705
    /**
706
     * @param string $value
707
     *
708
     * @return $this
709
     */
710
    public function withWidth($value)
711
    {
712
        $this->data['Width'] = $value;
713
        $this->options['form_params']['Width'] = $value;
714
715
        return $this;
716
    }
717
718
    /**
719
     * @param string $value
720
     *
721
     * @return $this
722
     */
723
    public function withStyle($value)
724
    {
725
        $this->data['Style'] = $value;
726
        $this->options['form_params']['Style'] = $value;
727
728
        return $this;
729
    }
730
}
731
732
/**
733
 * @method string getAsync()
734
 * @method string getJobId()
735
 */
736
class GetAsyncJobResult extends Rpc
737
{
738
739
    /**
740
     * @param string $value
741
     *
742
     * @return $this
743
     */
744
    public function withAsync($value)
745
    {
746
        $this->data['Async'] = $value;
747
        $this->options['form_params']['Async'] = $value;
748
749
        return $this;
750
    }
751
752
    /**
753
     * @param string $value
754
     *
755
     * @return $this
756
     */
757
    public function withJobId($value)
758
    {
759
        $this->data['JobId'] = $value;
760
        $this->options['form_params']['JobId'] = $value;
761
762
        return $this;
763
    }
764
}
765
766
/**
767
 * @method string getBitRate()
768
 * @method string getAsync()
769
 * @method string getVideoUrl()
770
 */
771
class SuperResolveVideo extends Rpc
772
{
773
774
    /**
775
     * @param string $value
776
     *
777
     * @return $this
778
     */
779
    public function withBitRate($value)
780
    {
781
        $this->data['BitRate'] = $value;
782
        $this->options['form_params']['BitRate'] = $value;
783
784
        return $this;
785
    }
786
787
    /**
788
     * @param string $value
789
     *
790
     * @return $this
791
     */
792
    public function withAsync($value)
793
    {
794
        $this->data['Async'] = $value;
795
        $this->options['form_params']['Async'] = $value;
796
797
        return $this;
798
    }
799
800
    /**
801
     * @param string $value
802
     *
803
     * @return $this
804
     */
805
    public function withVideoUrl($value)
806
    {
807
        $this->data['VideoUrl'] = $value;
808
        $this->options['form_params']['VideoUrl'] = $value;
809
810
        return $this;
811
    }
812
}
813