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 ( 6cd9d7...f11798 )
by
unknown
05:44
created

UpdateUserBucketConfig   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 8
c 1
b 0
f 0
dl 0
loc 21
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withData() 0 13 4
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 GetUserBucketConfig getUserBucketConfig(array $options = [])
18
 * @method ListPackageDesignModelTypes listPackageDesignModelTypes(array $options = [])
19
 * @method ListUserBuckets listUserBuckets(array $options = [])
20
 * @method MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
21
 * @method PreviewModelForPackageDesign previewModelForPackageDesign(array $options = [])
22
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
23
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
24
 * @method RecolorImage recolorImage(array $options = [])
25
 * @method RenderImageForPackageDesign renderImageForPackageDesign(array $options = [])
26
 * @method SegmentBody segmentBody(array $options = [])
27
 * @method SegmentImage segmentImage(array $options = [])
28
 * @method UpdateUserBucketConfig updateUserBucketConfig(array $options = [])
29
 */
30
class IvpdApiResolver extends ApiResolver
31
{
32
}
33
34
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
35
{
36
    /** @var string */
37
    public $product = 'ivpd';
38
39
    /** @var string */
40
    public $version = '2019-06-25';
41
42
    /** @var string */
43
    public $method = 'POST';
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 GetUserBucketConfig extends Rpc
373
{
374
}
375
376
class ListPackageDesignModelTypes extends Rpc
377
{
378
}
379
380
/**
381
 * @method array getData()
382
 */
383
class ListUserBuckets extends Rpc
384
{
385
386
    /**
387
     * @param array $data
388
     *
389
     * @return $this
390
     */
391
	public function withData(array $data)
392
	{
393
	    $this->data['Data'] = $data;
394
		foreach ($data as $depth1 => $depth1Value) {
395
			if(isset($depth1Value['RegionId'])){
396
				$this->options['form_params']['Data.' . ($depth1 + 1) . '.RegionId'] = $depth1Value['RegionId'];
397
			}
398
		}
399
400
		return $this;
401
    }
402
}
403
404
/**
405
 * @method string getUrl()
406
 */
407
class MakeSuperResolutionImage extends Rpc
408
{
409
410
    /**
411
     * @param string $value
412
     *
413
     * @return $this
414
     */
415
    public function withUrl($value)
416
    {
417
        $this->data['Url'] = $value;
418
        $this->options['form_params']['Url'] = $value;
419
420
        return $this;
421
    }
422
}
423
424
/**
425
 * @method string getMaterialName()
426
 * @method array getElementList()
427
 * @method string getDataId()
428
 * @method string getMaterialType()
429
 * @method string getModelType()
430
 * @method string getCategory()
431
 */
432
class PreviewModelForPackageDesign extends Rpc
433
{
434
435
    /**
436
     * @param string $value
437
     *
438
     * @return $this
439
     */
440
    public function withMaterialName($value)
441
    {
442
        $this->data['MaterialName'] = $value;
443
        $this->options['form_params']['MaterialName'] = $value;
444
445
        return $this;
446
    }
447
448
    /**
449
     * @param array $elementList
450
     *
451
     * @return $this
452
     */
453
	public function withElementList(array $elementList)
454
	{
455
	    $this->data['ElementList'] = $elementList;
456
		foreach ($elementList as $depth1 => $depth1Value) {
457
			if(isset($depth1Value['ImageUrl'])){
458
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
459
			}
460
			if(isset($depth1Value['SideName'])){
461
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.SideName'] = $depth1Value['SideName'];
462
			}
463
		}
464
465
		return $this;
466
    }
467
468
    /**
469
     * @param string $value
470
     *
471
     * @return $this
472
     */
473
    public function withDataId($value)
474
    {
475
        $this->data['DataId'] = $value;
476
        $this->options['form_params']['DataId'] = $value;
477
478
        return $this;
479
    }
480
481
    /**
482
     * @param string $value
483
     *
484
     * @return $this
485
     */
486
    public function withMaterialType($value)
487
    {
488
        $this->data['MaterialType'] = $value;
489
        $this->options['form_params']['MaterialType'] = $value;
490
491
        return $this;
492
    }
493
494
    /**
495
     * @param string $value
496
     *
497
     * @return $this
498
     */
499
    public function withModelType($value)
500
    {
501
        $this->data['ModelType'] = $value;
502
        $this->options['form_params']['ModelType'] = $value;
503
504
        return $this;
505
    }
506
507
    /**
508
     * @param string $value
509
     *
510
     * @return $this
511
     */
512
    public function withCategory($value)
513
    {
514
        $this->data['Category'] = $value;
515
        $this->options['form_params']['Category'] = $value;
516
517
        return $this;
518
    }
519
}
520
521
/**
522
 * @method string getUrl()
523
 * @method string getColorCount()
524
 */
525
class RecognizeImageColor extends Rpc
526
{
527
528
    /**
529
     * @param string $value
530
     *
531
     * @return $this
532
     */
533
    public function withUrl($value)
534
    {
535
        $this->data['Url'] = $value;
536
        $this->options['form_params']['Url'] = $value;
537
538
        return $this;
539
    }
540
541
    /**
542
     * @param string $value
543
     *
544
     * @return $this
545
     */
546
    public function withColorCount($value)
547
    {
548
        $this->data['ColorCount'] = $value;
549
        $this->options['form_params']['ColorCount'] = $value;
550
551
        return $this;
552
    }
553
}
554
555
/**
556
 * @method string getUrl()
557
 */
558
class RecognizeImageStyle extends Rpc
559
{
560
561
    /**
562
     * @param string $value
563
     *
564
     * @return $this
565
     */
566
    public function withUrl($value)
567
    {
568
        $this->data['Url'] = $value;
569
        $this->options['form_params']['Url'] = $value;
570
571
        return $this;
572
    }
573
}
574
575
/**
576
 * @method array getColorTemplate()
577
 * @method string getUrl()
578
 * @method string getMode()
579
 * @method string getColorCount()
580
 * @method string getRefUrl()
581
 */
582
class RecolorImage extends Rpc
583
{
584
585
    /**
586
     * @param array $colorTemplate
587
     *
588
     * @return $this
589
     */
590
	public function withColorTemplate(array $colorTemplate)
591
	{
592
	    $this->data['ColorTemplate'] = $colorTemplate;
593
		foreach ($colorTemplate as $depth1 => $depth1Value) {
594
			if(isset($depth1Value['Color'])){
595
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
596
			}
597
		}
598
599
		return $this;
600
    }
601
602
    /**
603
     * @param string $value
604
     *
605
     * @return $this
606
     */
607
    public function withUrl($value)
608
    {
609
        $this->data['Url'] = $value;
610
        $this->options['form_params']['Url'] = $value;
611
612
        return $this;
613
    }
614
615
    /**
616
     * @param string $value
617
     *
618
     * @return $this
619
     */
620
    public function withMode($value)
621
    {
622
        $this->data['Mode'] = $value;
623
        $this->options['form_params']['Mode'] = $value;
624
625
        return $this;
626
    }
627
628
    /**
629
     * @param string $value
630
     *
631
     * @return $this
632
     */
633
    public function withColorCount($value)
634
    {
635
        $this->data['ColorCount'] = $value;
636
        $this->options['form_params']['ColorCount'] = $value;
637
638
        return $this;
639
    }
640
641
    /**
642
     * @param string $value
643
     *
644
     * @return $this
645
     */
646
    public function withRefUrl($value)
647
    {
648
        $this->data['RefUrl'] = $value;
649
        $this->options['form_params']['RefUrl'] = $value;
650
651
        return $this;
652
    }
653
}
654
655
/**
656
 * @method string getDisplayType()
657
 * @method string getMaterialName()
658
 * @method string getJobId()
659
 * @method string getMaterialType()
660
 * @method string getModelType()
661
 * @method string getTargetWidth()
662
 * @method array getElementList()
663
 * @method string getCategory()
664
 * @method string getTargetHeight()
665
 */
666
class RenderImageForPackageDesign extends Rpc
667
{
668
669
    /**
670
     * @param string $value
671
     *
672
     * @return $this
673
     */
674
    public function withDisplayType($value)
675
    {
676
        $this->data['DisplayType'] = $value;
677
        $this->options['form_params']['DisplayType'] = $value;
678
679
        return $this;
680
    }
681
682
    /**
683
     * @param string $value
684
     *
685
     * @return $this
686
     */
687
    public function withMaterialName($value)
688
    {
689
        $this->data['MaterialName'] = $value;
690
        $this->options['form_params']['MaterialName'] = $value;
691
692
        return $this;
693
    }
694
695
    /**
696
     * @param string $value
697
     *
698
     * @return $this
699
     */
700
    public function withJobId($value)
701
    {
702
        $this->data['JobId'] = $value;
703
        $this->options['form_params']['JobId'] = $value;
704
705
        return $this;
706
    }
707
708
    /**
709
     * @param string $value
710
     *
711
     * @return $this
712
     */
713
    public function withMaterialType($value)
714
    {
715
        $this->data['MaterialType'] = $value;
716
        $this->options['form_params']['MaterialType'] = $value;
717
718
        return $this;
719
    }
720
721
    /**
722
     * @param string $value
723
     *
724
     * @return $this
725
     */
726
    public function withModelType($value)
727
    {
728
        $this->data['ModelType'] = $value;
729
        $this->options['form_params']['ModelType'] = $value;
730
731
        return $this;
732
    }
733
734
    /**
735
     * @param string $value
736
     *
737
     * @return $this
738
     */
739
    public function withTargetWidth($value)
740
    {
741
        $this->data['TargetWidth'] = $value;
742
        $this->options['form_params']['TargetWidth'] = $value;
743
744
        return $this;
745
    }
746
747
    /**
748
     * @param array $elementList
749
     *
750
     * @return $this
751
     */
752
	public function withElementList(array $elementList)
753
	{
754
	    $this->data['ElementList'] = $elementList;
755
		foreach ($elementList as $depth1 => $depth1Value) {
756
			if(isset($depth1Value['ImageUrl'])){
757
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
758
			}
759
			if(isset($depth1Value['SideName'])){
760
				$this->options['form_params']['ElementList.' . ($depth1 + 1) . '.SideName'] = $depth1Value['SideName'];
761
			}
762
		}
763
764
		return $this;
765
    }
766
767
    /**
768
     * @param string $value
769
     *
770
     * @return $this
771
     */
772
    public function withCategory($value)
773
    {
774
        $this->data['Category'] = $value;
775
        $this->options['form_params']['Category'] = $value;
776
777
        return $this;
778
    }
779
780
    /**
781
     * @param string $value
782
     *
783
     * @return $this
784
     */
785
    public function withTargetHeight($value)
786
    {
787
        $this->data['TargetHeight'] = $value;
788
        $this->options['form_params']['TargetHeight'] = $value;
789
790
        return $this;
791
    }
792
}
793
794
/**
795
 * @method string getImageUrl()
796
 */
797
class SegmentBody extends Rpc
798
{
799
800
    /**
801
     * @param string $value
802
     *
803
     * @return $this
804
     */
805
    public function withImageUrl($value)
806
    {
807
        $this->data['ImageUrl'] = $value;
808
        $this->options['form_params']['ImageUrl'] = $value;
809
810
        return $this;
811
    }
812
}
813
814
/**
815
 * @method string getUrl()
816
 */
817
class SegmentImage extends Rpc
818
{
819
820
    /**
821
     * @param string $value
822
     *
823
     * @return $this
824
     */
825
    public function withUrl($value)
826
    {
827
        $this->data['Url'] = $value;
828
        $this->options['form_params']['Url'] = $value;
829
830
        return $this;
831
    }
832
}
833
834
/**
835
 * @method array getData()
836
 */
837
class UpdateUserBucketConfig extends Rpc
838
{
839
840
    /**
841
     * @param array $data
842
     *
843
     * @return $this
844
     */
845
	public function withData(array $data)
846
	{
847
	    $this->data['Data'] = $data;
848
		foreach ($data as $depth1 => $depth1Value) {
849
			if(isset($depth1Value['Bucket'])){
850
				$this->options['form_params']['Data.' . ($depth1 + 1) . '.Bucket'] = $depth1Value['Bucket'];
851
			}
852
			if(isset($depth1Value['Region'])){
853
				$this->options['form_params']['Data.' . ($depth1 + 1) . '.Region'] = $depth1Value['Region'];
854
			}
855
		}
856
857
		return $this;
858
    }
859
}
860