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 ( 54b103...fe6903 )
by
unknown
04:18
created

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