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 ( 2600a9...d0faea )
by
unknown
06:29
created

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