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 ( 85ee79...e65562 )
by
unknown
05:28
created

EnhanceVideoQuality::withHDRFormat()   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 EnhanceVideoQuality enhanceVideoQuality(array $options = [])
13
 * @method EraseVideoLogo eraseVideoLogo(array $options = [])
14
 * @method EraseVideoSubtitles eraseVideoSubtitles(array $options = [])
15
 * @method GenerateVideo generateVideo(array $options = [])
16
 * @method GetAsyncJobResult getAsyncJobResult(array $options = [])
17
 * @method MergeVideoFace mergeVideoFace(array $options = [])
18
 * @method SuperResolveVideo superResolveVideo(array $options = [])
19
 */
20
class VideoenhanApiResolver extends ApiResolver
21
{
22
}
23
24
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
25
{
26
    /** @var string */
27
    public $product = 'videoenhan';
28
29
    /** @var string */
30
    public $version = '2020-03-20';
31
32
    /** @var string */
33
    public $method = 'POST';
34
35
    /** @var string */
36
    public $serviceCode = 'videoenhan';
37
}
38
39
/**
40
 * @method string getDuration()
41
 * @method string getAsync()
42
 * @method string getVideoUrl()
43
 * @method string getWidth()
44
 * @method string getHeight()
45
 */
46
class AbstractEcommerceVideo extends Rpc
47
{
48
49
    /**
50
     * @param string $value
51
     *
52
     * @return $this
53
     */
54
    public function withDuration($value)
55
    {
56
        $this->data['Duration'] = $value;
57
        $this->options['form_params']['Duration'] = $value;
58
59
        return $this;
60
    }
61
62
    /**
63
     * @param string $value
64
     *
65
     * @return $this
66
     */
67
    public function withAsync($value)
68
    {
69
        $this->data['Async'] = $value;
70
        $this->options['form_params']['Async'] = $value;
71
72
        return $this;
73
    }
74
75
    /**
76
     * @param string $value
77
     *
78
     * @return $this
79
     */
80
    public function withVideoUrl($value)
81
    {
82
        $this->data['VideoUrl'] = $value;
83
        $this->options['form_params']['VideoUrl'] = $value;
84
85
        return $this;
86
    }
87
88
    /**
89
     * @param string $value
90
     *
91
     * @return $this
92
     */
93
    public function withWidth($value)
94
    {
95
        $this->data['Width'] = $value;
96
        $this->options['form_params']['Width'] = $value;
97
98
        return $this;
99
    }
100
101
    /**
102
     * @param string $value
103
     *
104
     * @return $this
105
     */
106
    public function withHeight($value)
107
    {
108
        $this->data['Height'] = $value;
109
        $this->options['form_params']['Height'] = $value;
110
111
        return $this;
112
    }
113
}
114
115
/**
116
 * @method string getLength()
117
 * @method string getAsync()
118
 * @method string getVideoUrl()
119
 */
120
class AbstractFilmVideo extends Rpc
121
{
122
123
    /**
124
     * @param string $value
125
     *
126
     * @return $this
127
     */
128
    public function withLength($value)
129
    {
130
        $this->data['Length'] = $value;
131
        $this->options['form_params']['Length'] = $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
     * @param string $value
151
     *
152
     * @return $this
153
     */
154
    public function withVideoUrl($value)
155
    {
156
        $this->data['VideoUrl'] = $value;
157
        $this->options['form_params']['VideoUrl'] = $value;
158
159
        return $this;
160
    }
161
}
162
163
/**
164
 * @method string getMode()
165
 * @method string getAsync()
166
 * @method string getVideoUrl()
167
 * @method string getVideoBitrate()
168
 * @method string getVideoCodec()
169
 * @method string getVideoFormat()
170
 */
171
class AdjustVideoColor extends Rpc
172
{
173
174
    /**
175
     * @param string $value
176
     *
177
     * @return $this
178
     */
179
    public function withMode($value)
180
    {
181
        $this->data['Mode'] = $value;
182
        $this->options['form_params']['Mode'] = $value;
183
184
        return $this;
185
    }
186
187
    /**
188
     * @param string $value
189
     *
190
     * @return $this
191
     */
192
    public function withAsync($value)
193
    {
194
        $this->data['Async'] = $value;
195
        $this->options['form_params']['Async'] = $value;
196
197
        return $this;
198
    }
199
200
    /**
201
     * @param string $value
202
     *
203
     * @return $this
204
     */
205
    public function withVideoUrl($value)
206
    {
207
        $this->data['VideoUrl'] = $value;
208
        $this->options['form_params']['VideoUrl'] = $value;
209
210
        return $this;
211
    }
212
213
    /**
214
     * @param string $value
215
     *
216
     * @return $this
217
     */
218
    public function withVideoBitrate($value)
219
    {
220
        $this->data['VideoBitrate'] = $value;
221
        $this->options['form_params']['VideoBitrate'] = $value;
222
223
        return $this;
224
    }
225
226
    /**
227
     * @param string $value
228
     *
229
     * @return $this
230
     */
231
    public function withVideoCodec($value)
232
    {
233
        $this->data['VideoCodec'] = $value;
234
        $this->options['form_params']['VideoCodec'] = $value;
235
236
        return $this;
237
    }
238
239
    /**
240
     * @param string $value
241
     *
242
     * @return $this
243
     */
244
    public function withVideoFormat($value)
245
    {
246
        $this->data['VideoFormat'] = $value;
247
        $this->options['form_params']['VideoFormat'] = $value;
248
249
        return $this;
250
    }
251
}
252
253
/**
254
 * @method string getHeight()
255
 * @method string getB()
256
 * @method string getFillType()
257
 * @method string getG()
258
 * @method string getCropType()
259
 * @method string getAsync()
260
 * @method string getR()
261
 * @method string getVideoUrl()
262
 * @method string getWidth()
263
 * @method string getTightness()
264
 */
265
class ChangeVideoSize extends Rpc
266
{
267
268
    /**
269
     * @param string $value
270
     *
271
     * @return $this
272
     */
273
    public function withHeight($value)
274
    {
275
        $this->data['Height'] = $value;
276
        $this->options['form_params']['Height'] = $value;
277
278
        return $this;
279
    }
280
281
    /**
282
     * @param string $value
283
     *
284
     * @return $this
285
     */
286
    public function withB($value)
287
    {
288
        $this->data['B'] = $value;
289
        $this->options['form_params']['B'] = $value;
290
291
        return $this;
292
    }
293
294
    /**
295
     * @param string $value
296
     *
297
     * @return $this
298
     */
299
    public function withFillType($value)
300
    {
301
        $this->data['FillType'] = $value;
302
        $this->options['form_params']['FillType'] = $value;
303
304
        return $this;
305
    }
306
307
    /**
308
     * @param string $value
309
     *
310
     * @return $this
311
     */
312
    public function withG($value)
313
    {
314
        $this->data['G'] = $value;
315
        $this->options['form_params']['G'] = $value;
316
317
        return $this;
318
    }
319
320
    /**
321
     * @param string $value
322
     *
323
     * @return $this
324
     */
325
    public function withCropType($value)
326
    {
327
        $this->data['CropType'] = $value;
328
        $this->options['form_params']['CropType'] = $value;
329
330
        return $this;
331
    }
332
333
    /**
334
     * @param string $value
335
     *
336
     * @return $this
337
     */
338
    public function withAsync($value)
339
    {
340
        $this->data['Async'] = $value;
341
        $this->options['form_params']['Async'] = $value;
342
343
        return $this;
344
    }
345
346
    /**
347
     * @param string $value
348
     *
349
     * @return $this
350
     */
351
    public function withR($value)
352
    {
353
        $this->data['R'] = $value;
354
        $this->options['form_params']['R'] = $value;
355
356
        return $this;
357
    }
358
359
    /**
360
     * @param string $value
361
     *
362
     * @return $this
363
     */
364
    public function withVideoUrl($value)
365
    {
366
        $this->data['VideoUrl'] = $value;
367
        $this->options['form_params']['VideoUrl'] = $value;
368
369
        return $this;
370
    }
371
372
    /**
373
     * @param string $value
374
     *
375
     * @return $this
376
     */
377
    public function withWidth($value)
378
    {
379
        $this->data['Width'] = $value;
380
        $this->options['form_params']['Width'] = $value;
381
382
        return $this;
383
    }
384
385
    /**
386
     * @param string $value
387
     *
388
     * @return $this
389
     */
390
    public function withTightness($value)
391
    {
392
        $this->data['Tightness'] = $value;
393
        $this->options['form_params']['Tightness'] = $value;
394
395
        return $this;
396
    }
397
}
398
399
/**
400
 * @method string getHDRFormat()
401
 * @method string getFrameRate()
402
 * @method string getMaxIlluminance()
403
 * @method string getBitrate()
404
 * @method string getOutPutWidth()
405
 * @method string getOutPutHeight()
406
 * @method string getAsync()
407
 * @method string getVideoURL()
408
 */
409
class EnhanceVideoQuality extends Rpc
410
{
411
412
    /**
413
     * @param string $value
414
     *
415
     * @return $this
416
     */
417
    public function withHDRFormat($value)
418
    {
419
        $this->data['HDRFormat'] = $value;
420
        $this->options['form_params']['HDRFormat'] = $value;
421
422
        return $this;
423
    }
424
425
    /**
426
     * @param string $value
427
     *
428
     * @return $this
429
     */
430
    public function withFrameRate($value)
431
    {
432
        $this->data['FrameRate'] = $value;
433
        $this->options['form_params']['FrameRate'] = $value;
434
435
        return $this;
436
    }
437
438
    /**
439
     * @param string $value
440
     *
441
     * @return $this
442
     */
443
    public function withMaxIlluminance($value)
444
    {
445
        $this->data['MaxIlluminance'] = $value;
446
        $this->options['form_params']['MaxIlluminance'] = $value;
447
448
        return $this;
449
    }
450
451
    /**
452
     * @param string $value
453
     *
454
     * @return $this
455
     */
456
    public function withBitrate($value)
457
    {
458
        $this->data['Bitrate'] = $value;
459
        $this->options['form_params']['Bitrate'] = $value;
460
461
        return $this;
462
    }
463
464
    /**
465
     * @param string $value
466
     *
467
     * @return $this
468
     */
469
    public function withOutPutWidth($value)
470
    {
471
        $this->data['OutPutWidth'] = $value;
472
        $this->options['form_params']['OutPutWidth'] = $value;
473
474
        return $this;
475
    }
476
477
    /**
478
     * @param string $value
479
     *
480
     * @return $this
481
     */
482
    public function withOutPutHeight($value)
483
    {
484
        $this->data['OutPutHeight'] = $value;
485
        $this->options['form_params']['OutPutHeight'] = $value;
486
487
        return $this;
488
    }
489
490
    /**
491
     * @param string $value
492
     *
493
     * @return $this
494
     */
495
    public function withAsync($value)
496
    {
497
        $this->data['Async'] = $value;
498
        $this->options['form_params']['Async'] = $value;
499
500
        return $this;
501
    }
502
503
    /**
504
     * @param string $value
505
     *
506
     * @return $this
507
     */
508
    public function withVideoURL($value)
509
    {
510
        $this->data['VideoURL'] = $value;
511
        $this->options['form_params']['VideoURL'] = $value;
512
513
        return $this;
514
    }
515
}
516
517
/**
518
 * @method array getBoxes()
519
 * @method string getAsync()
520
 * @method string getVideoUrl()
521
 */
522
class EraseVideoLogo extends Rpc
523
{
524
525
    /**
526
     * @param array $boxes
527
     *
528
     * @return $this
529
     */
530
	public function withBoxes(array $boxes)
531
	{
532
	    $this->data['Boxes'] = $boxes;
533
		foreach ($boxes as $depth1 => $depth1Value) {
534
			if(isset($depth1Value['W'])){
535
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.W'] = $depth1Value['W'];
536
			}
537
			if(isset($depth1Value['H'])){
538
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.H'] = $depth1Value['H'];
539
			}
540
			if(isset($depth1Value['X'])){
541
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
542
			}
543
			if(isset($depth1Value['Y'])){
544
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
545
			}
546
		}
547
548
		return $this;
549
    }
550
551
    /**
552
     * @param string $value
553
     *
554
     * @return $this
555
     */
556
    public function withAsync($value)
557
    {
558
        $this->data['Async'] = $value;
559
        $this->options['form_params']['Async'] = $value;
560
561
        return $this;
562
    }
563
564
    /**
565
     * @param string $value
566
     *
567
     * @return $this
568
     */
569
    public function withVideoUrl($value)
570
    {
571
        $this->data['VideoUrl'] = $value;
572
        $this->options['form_params']['VideoUrl'] = $value;
573
574
        return $this;
575
    }
576
}
577
578
/**
579
 * @method string getBH()
580
 * @method string getAsync()
581
 * @method string getVideoUrl()
582
 * @method string getBW()
583
 * @method string getBX()
584
 * @method string getBY()
585
 */
586
class EraseVideoSubtitles extends Rpc
587
{
588
589
    /**
590
     * @param string $value
591
     *
592
     * @return $this
593
     */
594
    public function withBH($value)
595
    {
596
        $this->data['BH'] = $value;
597
        $this->options['form_params']['BH'] = $value;
598
599
        return $this;
600
    }
601
602
    /**
603
     * @param string $value
604
     *
605
     * @return $this
606
     */
607
    public function withAsync($value)
608
    {
609
        $this->data['Async'] = $value;
610
        $this->options['form_params']['Async'] = $value;
611
612
        return $this;
613
    }
614
615
    /**
616
     * @param string $value
617
     *
618
     * @return $this
619
     */
620
    public function withVideoUrl($value)
621
    {
622
        $this->data['VideoUrl'] = $value;
623
        $this->options['form_params']['VideoUrl'] = $value;
624
625
        return $this;
626
    }
627
628
    /**
629
     * @param string $value
630
     *
631
     * @return $this
632
     */
633
    public function withBW($value)
634
    {
635
        $this->data['BW'] = $value;
636
        $this->options['form_params']['BW'] = $value;
637
638
        return $this;
639
    }
640
641
    /**
642
     * @param string $value
643
     *
644
     * @return $this
645
     */
646
    public function withBX($value)
647
    {
648
        $this->data['BX'] = $value;
649
        $this->options['form_params']['BX'] = $value;
650
651
        return $this;
652
    }
653
654
    /**
655
     * @param string $value
656
     *
657
     * @return $this
658
     */
659
    public function withBY($value)
660
    {
661
        $this->data['BY'] = $value;
662
        $this->options['form_params']['BY'] = $value;
663
664
        return $this;
665
    }
666
}
667
668
/**
669
 * @method string getTransitionStyle()
670
 * @method string getScene()
671
 * @method string getDuration()
672
 * @method string getPuzzleEffect()
673
 * @method string getHeight()
674
 * @method string getDurationAdaption()
675
 * @method array getFileList()
676
 * @method string getMute()
677
 * @method string getAsync()
678
 * @method string getSmartEffect()
679
 * @method string getWidth()
680
 * @method string getStyle()
681
 */
682
class GenerateVideo extends Rpc
683
{
684
685
    /**
686
     * @param string $value
687
     *
688
     * @return $this
689
     */
690
    public function withTransitionStyle($value)
691
    {
692
        $this->data['TransitionStyle'] = $value;
693
        $this->options['form_params']['TransitionStyle'] = $value;
694
695
        return $this;
696
    }
697
698
    /**
699
     * @param string $value
700
     *
701
     * @return $this
702
     */
703
    public function withScene($value)
704
    {
705
        $this->data['Scene'] = $value;
706
        $this->options['form_params']['Scene'] = $value;
707
708
        return $this;
709
    }
710
711
    /**
712
     * @param string $value
713
     *
714
     * @return $this
715
     */
716
    public function withDuration($value)
717
    {
718
        $this->data['Duration'] = $value;
719
        $this->options['form_params']['Duration'] = $value;
720
721
        return $this;
722
    }
723
724
    /**
725
     * @param string $value
726
     *
727
     * @return $this
728
     */
729
    public function withPuzzleEffect($value)
730
    {
731
        $this->data['PuzzleEffect'] = $value;
732
        $this->options['form_params']['PuzzleEffect'] = $value;
733
734
        return $this;
735
    }
736
737
    /**
738
     * @param string $value
739
     *
740
     * @return $this
741
     */
742
    public function withHeight($value)
743
    {
744
        $this->data['Height'] = $value;
745
        $this->options['form_params']['Height'] = $value;
746
747
        return $this;
748
    }
749
750
    /**
751
     * @param string $value
752
     *
753
     * @return $this
754
     */
755
    public function withDurationAdaption($value)
756
    {
757
        $this->data['DurationAdaption'] = $value;
758
        $this->options['form_params']['DurationAdaption'] = $value;
759
760
        return $this;
761
    }
762
763
    /**
764
     * @param array $fileList
765
     *
766
     * @return $this
767
     */
768
	public function withFileList(array $fileList)
769
	{
770
	    $this->data['FileList'] = $fileList;
771
		foreach ($fileList as $depth1 => $depth1Value) {
772
			if(isset($depth1Value['FileName'])){
773
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileName'] = $depth1Value['FileName'];
774
			}
775
			if(isset($depth1Value['FileUrl'])){
776
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.FileUrl'] = $depth1Value['FileUrl'];
777
			}
778
			if(isset($depth1Value['Type'])){
779
				$this->options['form_params']['FileList.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
780
			}
781
		}
782
783
		return $this;
784
    }
785
786
    /**
787
     * @param string $value
788
     *
789
     * @return $this
790
     */
791
    public function withMute($value)
792
    {
793
        $this->data['Mute'] = $value;
794
        $this->options['form_params']['Mute'] = $value;
795
796
        return $this;
797
    }
798
799
    /**
800
     * @param string $value
801
     *
802
     * @return $this
803
     */
804
    public function withAsync($value)
805
    {
806
        $this->data['Async'] = $value;
807
        $this->options['form_params']['Async'] = $value;
808
809
        return $this;
810
    }
811
812
    /**
813
     * @param string $value
814
     *
815
     * @return $this
816
     */
817
    public function withSmartEffect($value)
818
    {
819
        $this->data['SmartEffect'] = $value;
820
        $this->options['form_params']['SmartEffect'] = $value;
821
822
        return $this;
823
    }
824
825
    /**
826
     * @param string $value
827
     *
828
     * @return $this
829
     */
830
    public function withWidth($value)
831
    {
832
        $this->data['Width'] = $value;
833
        $this->options['form_params']['Width'] = $value;
834
835
        return $this;
836
    }
837
838
    /**
839
     * @param string $value
840
     *
841
     * @return $this
842
     */
843
    public function withStyle($value)
844
    {
845
        $this->data['Style'] = $value;
846
        $this->options['form_params']['Style'] = $value;
847
848
        return $this;
849
    }
850
}
851
852
/**
853
 * @method string getAsync()
854
 * @method string getJobId()
855
 */
856
class GetAsyncJobResult extends Rpc
857
{
858
859
    /**
860
     * @param string $value
861
     *
862
     * @return $this
863
     */
864
    public function withAsync($value)
865
    {
866
        $this->data['Async'] = $value;
867
        $this->options['form_params']['Async'] = $value;
868
869
        return $this;
870
    }
871
872
    /**
873
     * @param string $value
874
     *
875
     * @return $this
876
     */
877
    public function withJobId($value)
878
    {
879
        $this->data['JobId'] = $value;
880
        $this->options['form_params']['JobId'] = $value;
881
882
        return $this;
883
    }
884
}
885
886
/**
887
 * @method string getPostURL()
888
 * @method string getReferenceURL()
889
 * @method string getAsync()
890
 * @method string getVideoURL()
891
 */
892
class MergeVideoFace extends Rpc
893
{
894
895
    /**
896
     * @param string $value
897
     *
898
     * @return $this
899
     */
900
    public function withPostURL($value)
901
    {
902
        $this->data['PostURL'] = $value;
903
        $this->options['form_params']['PostURL'] = $value;
904
905
        return $this;
906
    }
907
908
    /**
909
     * @param string $value
910
     *
911
     * @return $this
912
     */
913
    public function withReferenceURL($value)
914
    {
915
        $this->data['ReferenceURL'] = $value;
916
        $this->options['form_params']['ReferenceURL'] = $value;
917
918
        return $this;
919
    }
920
921
    /**
922
     * @param string $value
923
     *
924
     * @return $this
925
     */
926
    public function withAsync($value)
927
    {
928
        $this->data['Async'] = $value;
929
        $this->options['form_params']['Async'] = $value;
930
931
        return $this;
932
    }
933
934
    /**
935
     * @param string $value
936
     *
937
     * @return $this
938
     */
939
    public function withVideoURL($value)
940
    {
941
        $this->data['VideoURL'] = $value;
942
        $this->options['form_params']['VideoURL'] = $value;
943
944
        return $this;
945
    }
946
}
947
948
/**
949
 * @method string getBitRate()
950
 * @method string getAsync()
951
 * @method string getVideoUrl()
952
 */
953
class SuperResolveVideo extends Rpc
954
{
955
956
    /**
957
     * @param string $value
958
     *
959
     * @return $this
960
     */
961
    public function withBitRate($value)
962
    {
963
        $this->data['BitRate'] = $value;
964
        $this->options['form_params']['BitRate'] = $value;
965
966
        return $this;
967
    }
968
969
    /**
970
     * @param string $value
971
     *
972
     * @return $this
973
     */
974
    public function withAsync($value)
975
    {
976
        $this->data['Async'] = $value;
977
        $this->options['form_params']['Async'] = $value;
978
979
        return $this;
980
    }
981
982
    /**
983
     * @param string $value
984
     *
985
     * @return $this
986
     */
987
    public function withVideoUrl($value)
988
    {
989
        $this->data['VideoUrl'] = $value;
990
        $this->options['form_params']['VideoUrl'] = $value;
991
992
        return $this;
993
    }
994
}
995