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 ( aac3a6...9e5cd4 )
by
unknown
04:57
created

AddFaceEntity::withDbName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Facebody\V20191230;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddFace addFace(array $options = [])
9
 * @method AddFaceEntity addFaceEntity(array $options = [])
10
 * @method BodyPosture bodyPosture(array $options = [])
11
 * @method CompareFace compareFace(array $options = [])
12
 * @method CreateFaceDb createFaceDb(array $options = [])
13
 * @method DeleteFace deleteFace(array $options = [])
14
 * @method DeleteFaceDb deleteFaceDb(array $options = [])
15
 * @method DeleteFaceEntity deleteFaceEntity(array $options = [])
16
 * @method DetectBodyCount detectBodyCount(array $options = [])
17
 * @method DetectFace detectFace(array $options = [])
18
 * @method DetectLivingFace detectLivingFace(array $options = [])
19
 * @method DetectMask detectMask(array $options = [])
20
 * @method DetectPedestrian detectPedestrian(array $options = [])
21
 * @method EnhanceFace enhanceFace(array $options = [])
22
 * @method FaceBeauty faceBeauty(array $options = [])
23
 * @method FaceFilter faceFilter(array $options = [])
24
 * @method FaceMakeup faceMakeup(array $options = [])
25
 * @method FaceTidyup faceTidyup(array $options = [])
26
 * @method GetFaceEntity getFaceEntity(array $options = [])
27
 * @method HandPosture handPosture(array $options = [])
28
 * @method ListFaceDbs listFaceDbs(array $options = [])
29
 * @method ListFaceEntities listFaceEntities(array $options = [])
30
 * @method RecognizeExpression recognizeExpression(array $options = [])
31
 * @method RecognizeFace recognizeFace(array $options = [])
32
 * @method RecognizePublicFace recognizePublicFace(array $options = [])
33
 * @method SearchFace searchFace(array $options = [])
34
 * @method UpdateFaceEntity updateFaceEntity(array $options = [])
35
 */
36
class FacebodyApiResolver extends ApiResolver
37
{
38
}
39
40
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
41
{
42
    /** @var string */
43
    public $product = 'facebody';
44
45
    /** @var string */
46
    public $version = '2019-12-30';
47
48
    /** @var string */
49
    public $method = 'POST';
50
51
    /** @var string */
52
    public $serviceCode = 'facebody';
53
}
54
55
/**
56
 * @method string getEntityId()
57
 * @method string getDbName()
58
 * @method string getImageUrl()
59
 * @method string getExtraData()
60
 */
61
class AddFace extends Rpc
62
{
63
64
    /**
65
     * @param string $value
66
     *
67
     * @return $this
68
     */
69
    public function withEntityId($value)
70
    {
71
        $this->data['EntityId'] = $value;
72
        $this->options['form_params']['EntityId'] = $value;
73
74
        return $this;
75
    }
76
77
    /**
78
     * @param string $value
79
     *
80
     * @return $this
81
     */
82
    public function withDbName($value)
83
    {
84
        $this->data['DbName'] = $value;
85
        $this->options['form_params']['DbName'] = $value;
86
87
        return $this;
88
    }
89
90
    /**
91
     * @param string $value
92
     *
93
     * @return $this
94
     */
95
    public function withImageUrl($value)
96
    {
97
        $this->data['ImageUrl'] = $value;
98
        $this->options['form_params']['ImageUrl'] = $value;
99
100
        return $this;
101
    }
102
103
    /**
104
     * @param string $value
105
     *
106
     * @return $this
107
     */
108
    public function withExtraData($value)
109
    {
110
        $this->data['ExtraData'] = $value;
111
        $this->options['form_params']['ExtraData'] = $value;
112
113
        return $this;
114
    }
115
}
116
117
/**
118
 * @method string getEntityId()
119
 * @method string getLabels()
120
 * @method string getDbName()
121
 */
122
class AddFaceEntity extends Rpc
123
{
124
125
    /**
126
     * @param string $value
127
     *
128
     * @return $this
129
     */
130
    public function withEntityId($value)
131
    {
132
        $this->data['EntityId'] = $value;
133
        $this->options['form_params']['EntityId'] = $value;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @param string $value
140
     *
141
     * @return $this
142
     */
143
    public function withLabels($value)
144
    {
145
        $this->data['Labels'] = $value;
146
        $this->options['form_params']['Labels'] = $value;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @param string $value
153
     *
154
     * @return $this
155
     */
156
    public function withDbName($value)
157
    {
158
        $this->data['DbName'] = $value;
159
        $this->options['form_params']['DbName'] = $value;
160
161
        return $this;
162
    }
163
}
164
165
/**
166
 * @method string getImageURL()
167
 */
168
class BodyPosture extends Rpc
169
{
170
171
    /**
172
     * @param string $value
173
     *
174
     * @return $this
175
     */
176
    public function withImageURL($value)
177
    {
178
        $this->data['ImageURL'] = $value;
179
        $this->options['form_params']['ImageURL'] = $value;
180
181
        return $this;
182
    }
183
}
184
185
/**
186
 * @method string getImageType()
187
 * @method string getImageURLB()
188
 * @method string getImageURLA()
189
 */
190
class CompareFace extends Rpc
191
{
192
193
    /**
194
     * @param string $value
195
     *
196
     * @return $this
197
     */
198
    public function withImageType($value)
199
    {
200
        $this->data['ImageType'] = $value;
201
        $this->options['form_params']['ImageType'] = $value;
202
203
        return $this;
204
    }
205
206
    /**
207
     * @param string $value
208
     *
209
     * @return $this
210
     */
211
    public function withImageURLB($value)
212
    {
213
        $this->data['ImageURLB'] = $value;
214
        $this->options['form_params']['ImageURLB'] = $value;
215
216
        return $this;
217
    }
218
219
    /**
220
     * @param string $value
221
     *
222
     * @return $this
223
     */
224
    public function withImageURLA($value)
225
    {
226
        $this->data['ImageURLA'] = $value;
227
        $this->options['form_params']['ImageURLA'] = $value;
228
229
        return $this;
230
    }
231
}
232
233
/**
234
 * @method string getName()
235
 */
236
class CreateFaceDb extends Rpc
237
{
238
239
    /**
240
     * @param string $value
241
     *
242
     * @return $this
243
     */
244
    public function withName($value)
245
    {
246
        $this->data['Name'] = $value;
247
        $this->options['form_params']['Name'] = $value;
248
249
        return $this;
250
    }
251
}
252
253
/**
254
 * @method string getFaceId()
255
 * @method string getDbName()
256
 */
257
class DeleteFace extends Rpc
258
{
259
260
    /**
261
     * @param string $value
262
     *
263
     * @return $this
264
     */
265
    public function withFaceId($value)
266
    {
267
        $this->data['FaceId'] = $value;
268
        $this->options['form_params']['FaceId'] = $value;
269
270
        return $this;
271
    }
272
273
    /**
274
     * @param string $value
275
     *
276
     * @return $this
277
     */
278
    public function withDbName($value)
279
    {
280
        $this->data['DbName'] = $value;
281
        $this->options['form_params']['DbName'] = $value;
282
283
        return $this;
284
    }
285
}
286
287
/**
288
 * @method string getName()
289
 */
290
class DeleteFaceDb extends Rpc
291
{
292
293
    /**
294
     * @param string $value
295
     *
296
     * @return $this
297
     */
298
    public function withName($value)
299
    {
300
        $this->data['Name'] = $value;
301
        $this->options['form_params']['Name'] = $value;
302
303
        return $this;
304
    }
305
}
306
307
/**
308
 * @method string getEntityId()
309
 * @method string getDbName()
310
 */
311
class DeleteFaceEntity extends Rpc
312
{
313
314
    /**
315
     * @param string $value
316
     *
317
     * @return $this
318
     */
319
    public function withEntityId($value)
320
    {
321
        $this->data['EntityId'] = $value;
322
        $this->options['form_params']['EntityId'] = $value;
323
324
        return $this;
325
    }
326
327
    /**
328
     * @param string $value
329
     *
330
     * @return $this
331
     */
332
    public function withDbName($value)
333
    {
334
        $this->data['DbName'] = $value;
335
        $this->options['form_params']['DbName'] = $value;
336
337
        return $this;
338
    }
339
}
340
341
/**
342
 * @method string getImageURL()
343
 */
344
class DetectBodyCount extends Rpc
345
{
346
347
    /**
348
     * @param string $value
349
     *
350
     * @return $this
351
     */
352
    public function withImageURL($value)
353
    {
354
        $this->data['ImageURL'] = $value;
355
        $this->options['form_params']['ImageURL'] = $value;
356
357
        return $this;
358
    }
359
}
360
361
/**
362
 * @method string getImageType()
363
 * @method string getImageURL()
364
 */
365
class DetectFace extends Rpc
366
{
367
368
    /**
369
     * @param string $value
370
     *
371
     * @return $this
372
     */
373
    public function withImageType($value)
374
    {
375
        $this->data['ImageType'] = $value;
376
        $this->options['form_params']['ImageType'] = $value;
377
378
        return $this;
379
    }
380
381
    /**
382
     * @param string $value
383
     *
384
     * @return $this
385
     */
386
    public function withImageURL($value)
387
    {
388
        $this->data['ImageURL'] = $value;
389
        $this->options['form_params']['ImageURL'] = $value;
390
391
        return $this;
392
    }
393
}
394
395
/**
396
 * @method array getTasks()
397
 */
398
class DetectLivingFace extends Rpc
399
{
400
401
    /**
402
     * @param array $tasks
403
     *
404
     * @return $this
405
     */
406
	public function withTasks(array $tasks)
407
	{
408
	    $this->data['Tasks'] = $tasks;
409
		foreach ($tasks as $depth1 => $depth1Value) {
410
			$this->options['form_params']['Tasks.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
411
		}
412
413
		return $this;
414
    }
415
}
416
417
/**
418
 * @method string getImageURL()
419
 */
420
class DetectMask extends Rpc
421
{
422
423
    /**
424
     * @param string $value
425
     *
426
     * @return $this
427
     */
428
    public function withImageURL($value)
429
    {
430
        $this->data['ImageURL'] = $value;
431
        $this->options['form_params']['ImageURL'] = $value;
432
433
        return $this;
434
    }
435
}
436
437
/**
438
 * @method string getImageURL()
439
 */
440
class DetectPedestrian extends Rpc
441
{
442
443
    /**
444
     * @param string $value
445
     *
446
     * @return $this
447
     */
448
    public function withImageURL($value)
449
    {
450
        $this->data['ImageURL'] = $value;
451
        $this->options['form_params']['ImageURL'] = $value;
452
453
        return $this;
454
    }
455
}
456
457
/**
458
 * @method string getImageURL()
459
 */
460
class EnhanceFace extends Rpc
461
{
462
463
    /**
464
     * @param string $value
465
     *
466
     * @return $this
467
     */
468
    public function withImageURL($value)
469
    {
470
        $this->data['ImageURL'] = $value;
471
        $this->options['form_params']['ImageURL'] = $value;
472
473
        return $this;
474
    }
475
}
476
477
/**
478
 * @method string getSharp()
479
 * @method string getWhite()
480
 * @method string getImageURL()
481
 * @method string getSmooth()
482
 */
483
class FaceBeauty extends Rpc
484
{
485
486
    /**
487
     * @param string $value
488
     *
489
     * @return $this
490
     */
491
    public function withSharp($value)
492
    {
493
        $this->data['Sharp'] = $value;
494
        $this->options['form_params']['Sharp'] = $value;
495
496
        return $this;
497
    }
498
499
    /**
500
     * @param string $value
501
     *
502
     * @return $this
503
     */
504
    public function withWhite($value)
505
    {
506
        $this->data['White'] = $value;
507
        $this->options['form_params']['White'] = $value;
508
509
        return $this;
510
    }
511
512
    /**
513
     * @param string $value
514
     *
515
     * @return $this
516
     */
517
    public function withImageURL($value)
518
    {
519
        $this->data['ImageURL'] = $value;
520
        $this->options['form_params']['ImageURL'] = $value;
521
522
        return $this;
523
    }
524
525
    /**
526
     * @param string $value
527
     *
528
     * @return $this
529
     */
530
    public function withSmooth($value)
531
    {
532
        $this->data['Smooth'] = $value;
533
        $this->options['form_params']['Smooth'] = $value;
534
535
        return $this;
536
    }
537
}
538
539
/**
540
 * @method string getStrength()
541
 * @method string getResourceType()
542
 * @method string getImageURL()
543
 */
544
class FaceFilter extends Rpc
545
{
546
547
    /**
548
     * @param string $value
549
     *
550
     * @return $this
551
     */
552
    public function withStrength($value)
553
    {
554
        $this->data['Strength'] = $value;
555
        $this->options['form_params']['Strength'] = $value;
556
557
        return $this;
558
    }
559
560
    /**
561
     * @param string $value
562
     *
563
     * @return $this
564
     */
565
    public function withResourceType($value)
566
    {
567
        $this->data['ResourceType'] = $value;
568
        $this->options['form_params']['ResourceType'] = $value;
569
570
        return $this;
571
    }
572
573
    /**
574
     * @param string $value
575
     *
576
     * @return $this
577
     */
578
    public function withImageURL($value)
579
    {
580
        $this->data['ImageURL'] = $value;
581
        $this->options['form_params']['ImageURL'] = $value;
582
583
        return $this;
584
    }
585
}
586
587
/**
588
 * @method string getStrength()
589
 * @method string getMakeupType()
590
 * @method string getResourceType()
591
 * @method string getImageURL()
592
 */
593
class FaceMakeup extends Rpc
594
{
595
596
    /**
597
     * @param string $value
598
     *
599
     * @return $this
600
     */
601
    public function withStrength($value)
602
    {
603
        $this->data['Strength'] = $value;
604
        $this->options['form_params']['Strength'] = $value;
605
606
        return $this;
607
    }
608
609
    /**
610
     * @param string $value
611
     *
612
     * @return $this
613
     */
614
    public function withMakeupType($value)
615
    {
616
        $this->data['MakeupType'] = $value;
617
        $this->options['form_params']['MakeupType'] = $value;
618
619
        return $this;
620
    }
621
622
    /**
623
     * @param string $value
624
     *
625
     * @return $this
626
     */
627
    public function withResourceType($value)
628
    {
629
        $this->data['ResourceType'] = $value;
630
        $this->options['form_params']['ResourceType'] = $value;
631
632
        return $this;
633
    }
634
635
    /**
636
     * @param string $value
637
     *
638
     * @return $this
639
     */
640
    public function withImageURL($value)
641
    {
642
        $this->data['ImageURL'] = $value;
643
        $this->options['form_params']['ImageURL'] = $value;
644
645
        return $this;
646
    }
647
}
648
649
/**
650
 * @method string getShapeType()
651
 * @method string getStrength()
652
 * @method string getImageURL()
653
 */
654
class FaceTidyup extends Rpc
655
{
656
657
    /**
658
     * @param string $value
659
     *
660
     * @return $this
661
     */
662
    public function withShapeType($value)
663
    {
664
        $this->data['ShapeType'] = $value;
665
        $this->options['form_params']['ShapeType'] = $value;
666
667
        return $this;
668
    }
669
670
    /**
671
     * @param string $value
672
     *
673
     * @return $this
674
     */
675
    public function withStrength($value)
676
    {
677
        $this->data['Strength'] = $value;
678
        $this->options['form_params']['Strength'] = $value;
679
680
        return $this;
681
    }
682
683
    /**
684
     * @param string $value
685
     *
686
     * @return $this
687
     */
688
    public function withImageURL($value)
689
    {
690
        $this->data['ImageURL'] = $value;
691
        $this->options['form_params']['ImageURL'] = $value;
692
693
        return $this;
694
    }
695
}
696
697
/**
698
 * @method string getEntityId()
699
 * @method string getDbName()
700
 */
701
class GetFaceEntity extends Rpc
702
{
703
704
    /**
705
     * @param string $value
706
     *
707
     * @return $this
708
     */
709
    public function withEntityId($value)
710
    {
711
        $this->data['EntityId'] = $value;
712
        $this->options['form_params']['EntityId'] = $value;
713
714
        return $this;
715
    }
716
717
    /**
718
     * @param string $value
719
     *
720
     * @return $this
721
     */
722
    public function withDbName($value)
723
    {
724
        $this->data['DbName'] = $value;
725
        $this->options['form_params']['DbName'] = $value;
726
727
        return $this;
728
    }
729
}
730
731
/**
732
 * @method string getImageURL()
733
 */
734
class HandPosture extends Rpc
735
{
736
737
    /**
738
     * @param string $value
739
     *
740
     * @return $this
741
     */
742
    public function withImageURL($value)
743
    {
744
        $this->data['ImageURL'] = $value;
745
        $this->options['form_params']['ImageURL'] = $value;
746
747
        return $this;
748
    }
749
}
750
751
class ListFaceDbs extends Rpc
752
{
753
}
754
755
/**
756
 * @method string getEntityIdPrefix()
757
 * @method string getLimit()
758
 * @method string getOrder()
759
 * @method string getOffset()
760
 * @method string getToken()
761
 * @method string getLabels()
762
 * @method string getDbName()
763
 */
764
class ListFaceEntities extends Rpc
765
{
766
767
    /**
768
     * @param string $value
769
     *
770
     * @return $this
771
     */
772
    public function withEntityIdPrefix($value)
773
    {
774
        $this->data['EntityIdPrefix'] = $value;
775
        $this->options['form_params']['EntityIdPrefix'] = $value;
776
777
        return $this;
778
    }
779
780
    /**
781
     * @param string $value
782
     *
783
     * @return $this
784
     */
785
    public function withLimit($value)
786
    {
787
        $this->data['Limit'] = $value;
788
        $this->options['form_params']['Limit'] = $value;
789
790
        return $this;
791
    }
792
793
    /**
794
     * @param string $value
795
     *
796
     * @return $this
797
     */
798
    public function withOrder($value)
799
    {
800
        $this->data['Order'] = $value;
801
        $this->options['form_params']['Order'] = $value;
802
803
        return $this;
804
    }
805
806
    /**
807
     * @param string $value
808
     *
809
     * @return $this
810
     */
811
    public function withOffset($value)
812
    {
813
        $this->data['Offset'] = $value;
814
        $this->options['form_params']['Offset'] = $value;
815
816
        return $this;
817
    }
818
819
    /**
820
     * @param string $value
821
     *
822
     * @return $this
823
     */
824
    public function withToken($value)
825
    {
826
        $this->data['Token'] = $value;
827
        $this->options['form_params']['Token'] = $value;
828
829
        return $this;
830
    }
831
832
    /**
833
     * @param string $value
834
     *
835
     * @return $this
836
     */
837
    public function withLabels($value)
838
    {
839
        $this->data['Labels'] = $value;
840
        $this->options['form_params']['Labels'] = $value;
841
842
        return $this;
843
    }
844
845
    /**
846
     * @param string $value
847
     *
848
     * @return $this
849
     */
850
    public function withDbName($value)
851
    {
852
        $this->data['DbName'] = $value;
853
        $this->options['form_params']['DbName'] = $value;
854
855
        return $this;
856
    }
857
}
858
859
/**
860
 * @method string getImageURL()
861
 */
862
class RecognizeExpression extends Rpc
863
{
864
865
    /**
866
     * @param string $value
867
     *
868
     * @return $this
869
     */
870
    public function withImageURL($value)
871
    {
872
        $this->data['ImageURL'] = $value;
873
        $this->options['form_params']['ImageURL'] = $value;
874
875
        return $this;
876
    }
877
}
878
879
/**
880
 * @method string getImageType()
881
 * @method string getImageURL()
882
 */
883
class RecognizeFace extends Rpc
884
{
885
886
    /**
887
     * @param string $value
888
     *
889
     * @return $this
890
     */
891
    public function withImageType($value)
892
    {
893
        $this->data['ImageType'] = $value;
894
        $this->options['form_params']['ImageType'] = $value;
895
896
        return $this;
897
    }
898
899
    /**
900
     * @param string $value
901
     *
902
     * @return $this
903
     */
904
    public function withImageURL($value)
905
    {
906
        $this->data['ImageURL'] = $value;
907
        $this->options['form_params']['ImageURL'] = $value;
908
909
        return $this;
910
    }
911
}
912
913
/**
914
 * @method array getTask()
915
 */
916
class RecognizePublicFace extends Rpc
917
{
918
919
    /**
920
     * @param array $task
921
     *
922
     * @return $this
923
     */
924
	public function withTask(array $task)
925
	{
926
	    $this->data['Task'] = $task;
927
		foreach ($task as $depth1 => $depth1Value) {
928
			$this->options['form_params']['Task.' . ($depth1 + 1) . '.ImageURL'] = $depth1Value['ImageURL'];
929
		}
930
931
		return $this;
932
    }
933
}
934
935
/**
936
 * @method string getDbName()
937
 * @method string getImageUrl()
938
 * @method string getLimit()
939
 */
940
class SearchFace extends Rpc
941
{
942
943
    /**
944
     * @param string $value
945
     *
946
     * @return $this
947
     */
948
    public function withDbName($value)
949
    {
950
        $this->data['DbName'] = $value;
951
        $this->options['form_params']['DbName'] = $value;
952
953
        return $this;
954
    }
955
956
    /**
957
     * @param string $value
958
     *
959
     * @return $this
960
     */
961
    public function withImageUrl($value)
962
    {
963
        $this->data['ImageUrl'] = $value;
964
        $this->options['form_params']['ImageUrl'] = $value;
965
966
        return $this;
967
    }
968
969
    /**
970
     * @param string $value
971
     *
972
     * @return $this
973
     */
974
    public function withLimit($value)
975
    {
976
        $this->data['Limit'] = $value;
977
        $this->options['form_params']['Limit'] = $value;
978
979
        return $this;
980
    }
981
}
982
983
/**
984
 * @method string getEntityId()
985
 * @method string getLabels()
986
 * @method string getDbName()
987
 */
988
class UpdateFaceEntity extends Rpc
989
{
990
991
    /**
992
     * @param string $value
993
     *
994
     * @return $this
995
     */
996
    public function withEntityId($value)
997
    {
998
        $this->data['EntityId'] = $value;
999
        $this->options['form_params']['EntityId'] = $value;
1000
1001
        return $this;
1002
    }
1003
1004
    /**
1005
     * @param string $value
1006
     *
1007
     * @return $this
1008
     */
1009
    public function withLabels($value)
1010
    {
1011
        $this->data['Labels'] = $value;
1012
        $this->options['form_params']['Labels'] = $value;
1013
1014
        return $this;
1015
    }
1016
1017
    /**
1018
     * @param string $value
1019
     *
1020
     * @return $this
1021
     */
1022
    public function withDbName($value)
1023
    {
1024
        $this->data['DbName'] = $value;
1025
        $this->options['form_params']['DbName'] = $value;
1026
1027
        return $this;
1028
    }
1029
}
1030