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 ( 767c30...c84631 )
by
unknown
07:10
created

EraseLogoInVideo::withAsync()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Ivpd\V20190625;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ChangeImageSize changeImageSize(array $options = [])
9
 * @method CreateSegmentBodyJob createSegmentBodyJob(array $options = [])
10
 * @method DetectImageElements detectImageElements(array $options = [])
11
 * @method EraseLogoInVideo eraseLogoInVideo(array $options = [])
12
 * @method ExtendImageStyle extendImageStyle(array $options = [])
13
 * @method GetAsyncResult getAsyncResult(array $options = [])
14
 * @method GetJobResult getJobResult(array $options = [])
15
 * @method GetJobStatus getJobStatus(array $options = [])
16
 * @method GetRenderResult getRenderResult(array $options = [])
17
 * @method ListPackageDesignModelTypes listPackageDesignModelTypes(array $options = [])
18
 * @method MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
19
 * @method PreviewModelForPackageDesign previewModelForPackageDesign(array $options = [])
20
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
21
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
22
 * @method RecolorImage recolorImage(array $options = [])
23
 * @method RenderImageForPackageDesign renderImageForPackageDesign(array $options = [])
24
 * @method SegmentBody segmentBody(array $options = [])
25
 * @method SegmentImage segmentImage(array $options = [])
26
 */
27
class IvpdApiResolver extends ApiResolver
28
{
29
}
30
31
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
32
{
33
    /** @var string */
34
    public $product = 'ivpd';
35
36
    /** @var string */
37
    public $version = '2019-06-25';
38
39
    /** @var string */
40
    public $method = 'POST';
41
42
    /** @var string */
43
    public $serviceCode = 'ivpd';
44
}
45
46
/**
47
 * @method string getUrl()
48
 * @method string getWidth()
49
 * @method string getHeight()
50
 */
51
class ChangeImageSize extends Rpc
52
{
53
54
    /**
55
     * @param string $value
56
     *
57
     * @return $this
58
     */
59
    public function withUrl($value)
60
    {
61
        $this->data['Url'] = $value;
62
        $this->options['form_params']['Url'] = $value;
63
64
        return $this;
65
    }
66
67
    /**
68
     * @param string $value
69
     *
70
     * @return $this
71
     */
72
    public function withWidth($value)
73
    {
74
        $this->data['Width'] = $value;
75
        $this->options['form_params']['Width'] = $value;
76
77
        return $this;
78
    }
79
80
    /**
81
     * @param string $value
82
     *
83
     * @return $this
84
     */
85
    public function withHeight($value)
86
    {
87
        $this->data['Height'] = $value;
88
        $this->options['form_params']['Height'] = $value;
89
90
        return $this;
91
    }
92
}
93
94
/**
95
 * @method array getDataList()
96
 * @method string getAsync()
97
 * @method string getJobId()
98
 * @method string getTimeToLive()
99
 */
100
class CreateSegmentBodyJob extends Rpc
101
{
102
103
    /**
104
     * @param array $dataList
105
     *
106
     * @return $this
107
     */
108
	public function withDataList(array $dataList)
109
	{
110
	    $this->data['DataList'] = $dataList;
111
		foreach ($dataList as $depth1 => $depth1Value) {
112
			if(isset($depth1Value['DataId'])){
113
				$this->options['form_params']['DataList.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
114
			}
115
			if(isset($depth1Value['ImageUrl'])){
116
				$this->options['form_params']['DataList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
117
			}
118
		}
119
120
		return $this;
121
    }
122
123
    /**
124
     * @param string $value
125
     *
126
     * @return $this
127
     */
128
    public function withAsync($value)
129
    {
130
        $this->data['Async'] = $value;
131
        $this->options['form_params']['Async'] = $value;
132
133
        return $this;
134
    }
135
136
    /**
137
     * @param string $value
138
     *
139
     * @return $this
140
     */
141
    public function withJobId($value)
142
    {
143
        $this->data['JobId'] = $value;
144
        $this->options['form_params']['JobId'] = $value;
145
146
        return $this;
147
    }
148
149
    /**
150
     * @param string $value
151
     *
152
     * @return $this
153
     */
154
    public function withTimeToLive($value)
155
    {
156
        $this->data['TimeToLive'] = $value;
157
        $this->options['form_params']['TimeToLive'] = $value;
158
159
        return $this;
160
    }
161
}
162
163
/**
164
 * @method string getUrl()
165
 */
166
class DetectImageElements extends Rpc
167
{
168
169
    /**
170
     * @param string $value
171
     *
172
     * @return $this
173
     */
174
    public function withUrl($value)
175
    {
176
        $this->data['Url'] = $value;
177
        $this->options['form_params']['Url'] = $value;
178
179
        return $this;
180
    }
181
}
182
183
/**
184
 * @method array getBoxes()
185
 * @method string getAsync()
186
 * @method string getJobId()
187
 * @method string getVideoUrl()
188
 */
189
class EraseLogoInVideo extends Rpc
190
{
191
192
    /**
193
     * @param array $boxes
194
     *
195
     * @return $this
196
     */
197
	public function withBoxes(array $boxes)
198
	{
199
	    $this->data['Boxes'] = $boxes;
200
		foreach ($boxes as $depth1 => $depth1Value) {
201
			if(isset($depth1Value['W'])){
202
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.W'] = $depth1Value['W'];
203
			}
204
			if(isset($depth1Value['H'])){
205
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.H'] = $depth1Value['H'];
206
			}
207
			if(isset($depth1Value['X'])){
208
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.X'] = $depth1Value['X'];
209
			}
210
			if(isset($depth1Value['Y'])){
211
				$this->options['form_params']['Boxes.' . ($depth1 + 1) . '.Y'] = $depth1Value['Y'];
212
			}
213
		}
214
215
		return $this;
216
    }
217
218
    /**
219
     * @param string $value
220
     *
221
     * @return $this
222
     */
223
    public function withAsync($value)
224
    {
225
        $this->data['Async'] = $value;
226
        $this->options['form_params']['Async'] = $value;
227
228
        return $this;
229
    }
230
231
    /**
232
     * @param string $value
233
     *
234
     * @return $this
235
     */
236
    public function withJobId($value)
237
    {
238
        $this->data['JobId'] = $value;
239
        $this->options['form_params']['JobId'] = $value;
240
241
        return $this;
242
    }
243
244
    /**
245
     * @param string $value
246
     *
247
     * @return $this
248
     */
249
    public function withVideoUrl($value)
250
    {
251
        $this->data['VideoUrl'] = $value;
252
        $this->options['form_params']['VideoUrl'] = $value;
253
254
        return $this;
255
    }
256
}
257
258
/**
259
 * @method string getMajorUrl()
260
 * @method string getStyleUrl()
261
 */
262
class ExtendImageStyle extends Rpc
263
{
264
265
    /**
266
     * @param string $value
267
     *
268
     * @return $this
269
     */
270
    public function withMajorUrl($value)
271
    {
272
        $this->data['MajorUrl'] = $value;
273
        $this->options['form_params']['MajorUrl'] = $value;
274
275
        return $this;
276
    }
277
278
    /**
279
     * @param string $value
280
     *
281
     * @return $this
282
     */
283
    public function withStyleUrl($value)
284
    {
285
        $this->data['StyleUrl'] = $value;
286
        $this->options['form_params']['StyleUrl'] = $value;
287
288
        return $this;
289
    }
290
}
291
292
/**
293
 * @method string getJobId()
294
 */
295
class GetAsyncResult extends Rpc
296
{
297
298
    /**
299
     * @param string $value
300
     *
301
     * @return $this
302
     */
303
    public function withJobId($value)
304
    {
305
        $this->data['JobId'] = $value;
306
        $this->options['form_params']['JobId'] = $value;
307
308
        return $this;
309
    }
310
}
311
312
/**
313
 * @method string getJobId()
314
 */
315
class GetJobResult extends Rpc
316
{
317
318
    /**
319
     * @param string $value
320
     *
321
     * @return $this
322
     */
323
    public function withJobId($value)
324
    {
325
        $this->data['JobId'] = $value;
326
        $this->options['form_params']['JobId'] = $value;
327
328
        return $this;
329
    }
330
}
331
332
/**
333
 * @method string getJobId()
334
 */
335
class GetJobStatus extends Rpc
336
{
337
338
    /**
339
     * @param string $value
340
     *
341
     * @return $this
342
     */
343
    public function withJobId($value)
344
    {
345
        $this->data['JobId'] = $value;
346
        $this->options['form_params']['JobId'] = $value;
347
348
        return $this;
349
    }
350
}
351
352
/**
353
 * @method string getJobId()
354
 */
355
class GetRenderResult extends Rpc
356
{
357
358
    /**
359
     * @param string $value
360
     *
361
     * @return $this
362
     */
363
    public function withJobId($value)
364
    {
365
        $this->data['JobId'] = $value;
366
        $this->options['form_params']['JobId'] = $value;
367
368
        return $this;
369
    }
370
}
371
372
class ListPackageDesignModelTypes extends Rpc
373
{
374
}
375
376
/**
377
 * @method string getUrl()
378
 */
379
class MakeSuperResolutionImage extends Rpc
380
{
381
382
    /**
383
     * @param string $value
384
     *
385
     * @return $this
386
     */
387
    public function withUrl($value)
388
    {
389
        $this->data['Url'] = $value;
390
        $this->options['form_params']['Url'] = $value;
391
392
        return $this;
393
    }
394
}
395
396
/**
397
 * @method string getMaterialName()
398
 * @method array getElementList()
399
 * @method string getDataId()
400
 * @method string getMaterialType()
401
 * @method string getModelType()
402
 * @method string getCategory()
403
 */
404
class PreviewModelForPackageDesign extends Rpc
405
{
406
407
    /**
408
     * @param string $value
409
     *
410
     * @return $this
411
     */
412
    public function withMaterialName($value)
413
    {
414
        $this->data['MaterialName'] = $value;
415
        $this->options['form_params']['MaterialName'] = $value;
416
417
        return $this;
418
    }
419
420
    /**
421
     * @param array $elementList
422
     *
423
     * @return $this
424
     */
425
	public function withElementList(array $elementList)
426
	{
427
	    $this->data['ElementList'] = $elementList;
428
		foreach ($elementList as $depth1 => $depth1Value) {
429
			if(isset($depth1Value['ImageUrl'])){
430
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
431
			}
432
			if(isset($depth1Value['SideName'])){
433
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.SideName'] = $depth1Value['SideName'];
434
			}
435
		}
436
437
		return $this;
438
    }
439
440
    /**
441
     * @param string $value
442
     *
443
     * @return $this
444
     */
445
    public function withDataId($value)
446
    {
447
        $this->data['DataId'] = $value;
448
        $this->options['form_params']['DataId'] = $value;
449
450
        return $this;
451
    }
452
453
    /**
454
     * @param string $value
455
     *
456
     * @return $this
457
     */
458
    public function withMaterialType($value)
459
    {
460
        $this->data['MaterialType'] = $value;
461
        $this->options['form_params']['MaterialType'] = $value;
462
463
        return $this;
464
    }
465
466
    /**
467
     * @param string $value
468
     *
469
     * @return $this
470
     */
471
    public function withModelType($value)
472
    {
473
        $this->data['ModelType'] = $value;
474
        $this->options['form_params']['ModelType'] = $value;
475
476
        return $this;
477
    }
478
479
    /**
480
     * @param string $value
481
     *
482
     * @return $this
483
     */
484
    public function withCategory($value)
485
    {
486
        $this->data['Category'] = $value;
487
        $this->options['form_params']['Category'] = $value;
488
489
        return $this;
490
    }
491
}
492
493
/**
494
 * @method string getUrl()
495
 * @method string getColorCount()
496
 */
497
class RecognizeImageColor extends Rpc
498
{
499
500
    /**
501
     * @param string $value
502
     *
503
     * @return $this
504
     */
505
    public function withUrl($value)
506
    {
507
        $this->data['Url'] = $value;
508
        $this->options['form_params']['Url'] = $value;
509
510
        return $this;
511
    }
512
513
    /**
514
     * @param string $value
515
     *
516
     * @return $this
517
     */
518
    public function withColorCount($value)
519
    {
520
        $this->data['ColorCount'] = $value;
521
        $this->options['form_params']['ColorCount'] = $value;
522
523
        return $this;
524
    }
525
}
526
527
/**
528
 * @method string getUrl()
529
 */
530
class RecognizeImageStyle extends Rpc
531
{
532
533
    /**
534
     * @param string $value
535
     *
536
     * @return $this
537
     */
538
    public function withUrl($value)
539
    {
540
        $this->data['Url'] = $value;
541
        $this->options['form_params']['Url'] = $value;
542
543
        return $this;
544
    }
545
}
546
547
/**
548
 * @method array getColorTemplate()
549
 * @method string getUrl()
550
 * @method string getMode()
551
 * @method string getColorCount()
552
 * @method string getRefUrl()
553
 */
554
class RecolorImage extends Rpc
555
{
556
557
    /**
558
     * @param array $colorTemplate
559
     *
560
     * @return $this
561
     */
562
	public function withColorTemplate(array $colorTemplate)
563
	{
564
	    $this->data['ColorTemplate'] = $colorTemplate;
565
		foreach ($colorTemplate as $depth1 => $depth1Value) {
566
			if(isset($depth1Value['Color'])){
567
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
568
			}
569
		}
570
571
		return $this;
572
    }
573
574
    /**
575
     * @param string $value
576
     *
577
     * @return $this
578
     */
579
    public function withUrl($value)
580
    {
581
        $this->data['Url'] = $value;
582
        $this->options['form_params']['Url'] = $value;
583
584
        return $this;
585
    }
586
587
    /**
588
     * @param string $value
589
     *
590
     * @return $this
591
     */
592
    public function withMode($value)
593
    {
594
        $this->data['Mode'] = $value;
595
        $this->options['form_params']['Mode'] = $value;
596
597
        return $this;
598
    }
599
600
    /**
601
     * @param string $value
602
     *
603
     * @return $this
604
     */
605
    public function withColorCount($value)
606
    {
607
        $this->data['ColorCount'] = $value;
608
        $this->options['form_params']['ColorCount'] = $value;
609
610
        return $this;
611
    }
612
613
    /**
614
     * @param string $value
615
     *
616
     * @return $this
617
     */
618
    public function withRefUrl($value)
619
    {
620
        $this->data['RefUrl'] = $value;
621
        $this->options['form_params']['RefUrl'] = $value;
622
623
        return $this;
624
    }
625
}
626
627
/**
628
 * @method string getDisplayType()
629
 * @method string getMaterialName()
630
 * @method string getJobId()
631
 * @method string getMaterialType()
632
 * @method string getModelType()
633
 * @method string getTargetWidth()
634
 * @method array getElementList()
635
 * @method string getCategory()
636
 * @method string getTargetHeight()
637
 */
638
class RenderImageForPackageDesign extends Rpc
639
{
640
641
    /**
642
     * @param string $value
643
     *
644
     * @return $this
645
     */
646
    public function withDisplayType($value)
647
    {
648
        $this->data['DisplayType'] = $value;
649
        $this->options['form_params']['DisplayType'] = $value;
650
651
        return $this;
652
    }
653
654
    /**
655
     * @param string $value
656
     *
657
     * @return $this
658
     */
659
    public function withMaterialName($value)
660
    {
661
        $this->data['MaterialName'] = $value;
662
        $this->options['form_params']['MaterialName'] = $value;
663
664
        return $this;
665
    }
666
667
    /**
668
     * @param string $value
669
     *
670
     * @return $this
671
     */
672
    public function withJobId($value)
673
    {
674
        $this->data['JobId'] = $value;
675
        $this->options['form_params']['JobId'] = $value;
676
677
        return $this;
678
    }
679
680
    /**
681
     * @param string $value
682
     *
683
     * @return $this
684
     */
685
    public function withMaterialType($value)
686
    {
687
        $this->data['MaterialType'] = $value;
688
        $this->options['form_params']['MaterialType'] = $value;
689
690
        return $this;
691
    }
692
693
    /**
694
     * @param string $value
695
     *
696
     * @return $this
697
     */
698
    public function withModelType($value)
699
    {
700
        $this->data['ModelType'] = $value;
701
        $this->options['form_params']['ModelType'] = $value;
702
703
        return $this;
704
    }
705
706
    /**
707
     * @param string $value
708
     *
709
     * @return $this
710
     */
711
    public function withTargetWidth($value)
712
    {
713
        $this->data['TargetWidth'] = $value;
714
        $this->options['form_params']['TargetWidth'] = $value;
715
716
        return $this;
717
    }
718
719
    /**
720
     * @param array $elementList
721
     *
722
     * @return $this
723
     */
724
	public function withElementList(array $elementList)
725
	{
726
	    $this->data['ElementList'] = $elementList;
727
		foreach ($elementList as $depth1 => $depth1Value) {
728
			if(isset($depth1Value['ImageUrl'])){
729
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
730
			}
731
			if(isset($depth1Value['SideName'])){
732
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.SideName'] = $depth1Value['SideName'];
733
			}
734
		}
735
736
		return $this;
737
    }
738
739
    /**
740
     * @param string $value
741
     *
742
     * @return $this
743
     */
744
    public function withCategory($value)
745
    {
746
        $this->data['Category'] = $value;
747
        $this->options['form_params']['Category'] = $value;
748
749
        return $this;
750
    }
751
752
    /**
753
     * @param string $value
754
     *
755
     * @return $this
756
     */
757
    public function withTargetHeight($value)
758
    {
759
        $this->data['TargetHeight'] = $value;
760
        $this->options['form_params']['TargetHeight'] = $value;
761
762
        return $this;
763
    }
764
}
765
766
/**
767
 * @method string getImageUrl()
768
 */
769
class SegmentBody extends Rpc
770
{
771
772
    /**
773
     * @param string $value
774
     *
775
     * @return $this
776
     */
777
    public function withImageUrl($value)
778
    {
779
        $this->data['ImageUrl'] = $value;
780
        $this->options['form_params']['ImageUrl'] = $value;
781
782
        return $this;
783
    }
784
}
785
786
/**
787
 * @method string getUrl()
788
 */
789
class SegmentImage extends Rpc
790
{
791
792
    /**
793
     * @param string $value
794
     *
795
     * @return $this
796
     */
797
    public function withUrl($value)
798
    {
799
        $this->data['Url'] = $value;
800
        $this->options['form_params']['Url'] = $value;
801
802
        return $this;
803
    }
804
}
805