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 ( e5da4d...089e45 )
by
unknown
06:52
created

ClassifyFNF   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 5
eloc 16
c 0
b 0
f 0
dl 0
loc 66
rs 10

5 Methods

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