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 ( b3ce80...2fff2b )
by
unknown
06:52
created

CreateModel::withModelName()   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\NlpAutoml\V20191111;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateAsyncPredict createAsyncPredict(array $options = [])
9
 * @method CreateDataset createDataset(array $options = [])
10
 * @method CreateDatasetRecord createDatasetRecord(array $options = [])
11
 * @method CreateModel createModel(array $options = [])
12
 * @method CreateProject createProject(array $options = [])
13
 * @method DeleteModel deleteModel(array $options = [])
14
 * @method DeployModel deployModel(array $options = [])
15
 * @method GetAsyncPredict getAsyncPredict(array $options = [])
16
 * @method GetModel getModel(array $options = [])
17
 * @method GetPredictResult getPredictResult(array $options = [])
18
 * @method ListDataset listDataset(array $options = [])
19
 * @method ListModels listModels(array $options = [])
20
 * @method RunContactReview runContactReview(array $options = [])
21
 * @method RunPreTrainService runPreTrainService(array $options = [])
22
 * @method RunSmartCallService runSmartCallService(array $options = [])
23
 */
24
class NlpAutomlApiResolver extends ApiResolver
25
{
26
}
27
28
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
29
{
30
    /** @var string */
31
    public $product = 'nlp-automl';
32
33
    /** @var string */
34
    public $version = '2019-11-11';
35
36
    /** @var string */
37
    public $method = 'POST';
38
39
    /** @var string */
40
    public $serviceCode = 'nlpautoml';
41
}
42
43
/**
44
 * @method string getTopK()
45
 * @method string getFileType()
46
 * @method string getDetailTag()
47
 * @method string getFetchContent()
48
 * @method string getContent()
49
 * @method string getFileContent()
50
 * @method string getProduct()
51
 * @method string getModelId()
52
 * @method string getFileUrl()
53
 * @method string getModelVersion()
54
 */
55
class CreateAsyncPredict extends Rpc
56
{
57
58
    /**
59
     * @param string $value
60
     *
61
     * @return $this
62
     */
63
    public function withTopK($value)
64
    {
65
        $this->data['TopK'] = $value;
66
        $this->options['form_params']['TopK'] = $value;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @param string $value
73
     *
74
     * @return $this
75
     */
76
    public function withFileType($value)
77
    {
78
        $this->data['FileType'] = $value;
79
        $this->options['form_params']['FileType'] = $value;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @param string $value
86
     *
87
     * @return $this
88
     */
89
    public function withDetailTag($value)
90
    {
91
        $this->data['DetailTag'] = $value;
92
        $this->options['form_params']['DetailTag'] = $value;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @param string $value
99
     *
100
     * @return $this
101
     */
102
    public function withFetchContent($value)
103
    {
104
        $this->data['FetchContent'] = $value;
105
        $this->options['form_params']['FetchContent'] = $value;
106
107
        return $this;
108
    }
109
110
    /**
111
     * @param string $value
112
     *
113
     * @return $this
114
     */
115
    public function withContent($value)
116
    {
117
        $this->data['Content'] = $value;
118
        $this->options['form_params']['Content'] = $value;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @param string $value
125
     *
126
     * @return $this
127
     */
128
    public function withFileContent($value)
129
    {
130
        $this->data['FileContent'] = $value;
131
        $this->options['form_params']['FileContent'] = $value;
132
133
        return $this;
134
    }
135
136
    /**
137
     * @param string $value
138
     *
139
     * @return $this
140
     */
141
    public function withProduct($value)
142
    {
143
        $this->data['Product'] = $value;
144
        $this->options['form_params']['Product'] = $value;
145
146
        return $this;
147
    }
148
149
    /**
150
     * @param string $value
151
     *
152
     * @return $this
153
     */
154
    public function withModelId($value)
155
    {
156
        $this->data['ModelId'] = $value;
157
        $this->options['form_params']['ModelId'] = $value;
158
159
        return $this;
160
    }
161
162
    /**
163
     * @param string $value
164
     *
165
     * @return $this
166
     */
167
    public function withFileUrl($value)
168
    {
169
        $this->data['FileUrl'] = $value;
170
        $this->options['form_params']['FileUrl'] = $value;
171
172
        return $this;
173
    }
174
175
    /**
176
     * @param string $value
177
     *
178
     * @return $this
179
     */
180
    public function withModelVersion($value)
181
    {
182
        $this->data['ModelVersion'] = $value;
183
        $this->options['form_params']['ModelVersion'] = $value;
184
185
        return $this;
186
    }
187
}
188
189
/**
190
 * @method string getProduct()
191
 * @method string getDatasetName()
192
 * @method string getProjectId()
193
 */
194
class CreateDataset extends Rpc
195
{
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withProduct($value)
203
    {
204
        $this->data['Product'] = $value;
205
        $this->options['form_params']['Product'] = $value;
206
207
        return $this;
208
    }
209
210
    /**
211
     * @param string $value
212
     *
213
     * @return $this
214
     */
215
    public function withDatasetName($value)
216
    {
217
        $this->data['DatasetName'] = $value;
218
        $this->options['form_params']['DatasetName'] = $value;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @param string $value
225
     *
226
     * @return $this
227
     */
228
    public function withProjectId($value)
229
    {
230
        $this->data['ProjectId'] = $value;
231
        $this->options['form_params']['ProjectId'] = $value;
232
233
        return $this;
234
    }
235
}
236
237
/**
238
 * @method string getDatasetRecord()
239
 * @method string getDatasetId()
240
 * @method string getProjectId()
241
 */
242
class CreateDatasetRecord extends Rpc
243
{
244
245
    /**
246
     * @param string $value
247
     *
248
     * @return $this
249
     */
250
    public function withDatasetRecord($value)
251
    {
252
        $this->data['DatasetRecord'] = $value;
253
        $this->options['form_params']['DatasetRecord'] = $value;
254
255
        return $this;
256
    }
257
258
    /**
259
     * @param string $value
260
     *
261
     * @return $this
262
     */
263
    public function withDatasetId($value)
264
    {
265
        $this->data['DatasetId'] = $value;
266
        $this->options['form_params']['DatasetId'] = $value;
267
268
        return $this;
269
    }
270
271
    /**
272
     * @param string $value
273
     *
274
     * @return $this
275
     */
276
    public function withProjectId($value)
277
    {
278
        $this->data['ProjectId'] = $value;
279
        $this->options['form_params']['ProjectId'] = $value;
280
281
        return $this;
282
    }
283
}
284
285
/**
286
 * @method string getIsIncrementalTrain()
287
 * @method string getModelName()
288
 * @method string getDatasetIdList()
289
 * @method string getTestDatasetIdList()
290
 * @method string getModelType()
291
 * @method string getProjectId()
292
 * @method string getProduct()
293
 * @method string getModelId()
294
 */
295
class CreateModel extends Rpc
296
{
297
298
    /**
299
     * @param string $value
300
     *
301
     * @return $this
302
     */
303
    public function withIsIncrementalTrain($value)
304
    {
305
        $this->data['IsIncrementalTrain'] = $value;
306
        $this->options['form_params']['IsIncrementalTrain'] = $value;
307
308
        return $this;
309
    }
310
311
    /**
312
     * @param string $value
313
     *
314
     * @return $this
315
     */
316
    public function withModelName($value)
317
    {
318
        $this->data['ModelName'] = $value;
319
        $this->options['form_params']['ModelName'] = $value;
320
321
        return $this;
322
    }
323
324
    /**
325
     * @param string $value
326
     *
327
     * @return $this
328
     */
329
    public function withDatasetIdList($value)
330
    {
331
        $this->data['DatasetIdList'] = $value;
332
        $this->options['form_params']['DatasetIdList'] = $value;
333
334
        return $this;
335
    }
336
337
    /**
338
     * @param string $value
339
     *
340
     * @return $this
341
     */
342
    public function withTestDatasetIdList($value)
343
    {
344
        $this->data['TestDatasetIdList'] = $value;
345
        $this->options['form_params']['TestDatasetIdList'] = $value;
346
347
        return $this;
348
    }
349
350
    /**
351
     * @param string $value
352
     *
353
     * @return $this
354
     */
355
    public function withModelType($value)
356
    {
357
        $this->data['ModelType'] = $value;
358
        $this->options['form_params']['ModelType'] = $value;
359
360
        return $this;
361
    }
362
363
    /**
364
     * @param string $value
365
     *
366
     * @return $this
367
     */
368
    public function withProjectId($value)
369
    {
370
        $this->data['ProjectId'] = $value;
371
        $this->options['form_params']['ProjectId'] = $value;
372
373
        return $this;
374
    }
375
376
    /**
377
     * @param string $value
378
     *
379
     * @return $this
380
     */
381
    public function withProduct($value)
382
    {
383
        $this->data['Product'] = $value;
384
        $this->options['form_params']['Product'] = $value;
385
386
        return $this;
387
    }
388
389
    /**
390
     * @param string $value
391
     *
392
     * @return $this
393
     */
394
    public function withModelId($value)
395
    {
396
        $this->data['ModelId'] = $value;
397
        $this->options['form_params']['ModelId'] = $value;
398
399
        return $this;
400
    }
401
}
402
403
/**
404
 * @method string getProjectName()
405
 * @method string getProduct()
406
 * @method string getProjectDescription()
407
 * @method string getProjectType()
408
 */
409
class CreateProject extends Rpc
410
{
411
412
    /**
413
     * @param string $value
414
     *
415
     * @return $this
416
     */
417
    public function withProjectName($value)
418
    {
419
        $this->data['ProjectName'] = $value;
420
        $this->options['form_params']['ProjectName'] = $value;
421
422
        return $this;
423
    }
424
425
    /**
426
     * @param string $value
427
     *
428
     * @return $this
429
     */
430
    public function withProduct($value)
431
    {
432
        $this->data['Product'] = $value;
433
        $this->options['form_params']['Product'] = $value;
434
435
        return $this;
436
    }
437
438
    /**
439
     * @param string $value
440
     *
441
     * @return $this
442
     */
443
    public function withProjectDescription($value)
444
    {
445
        $this->data['ProjectDescription'] = $value;
446
        $this->options['form_params']['ProjectDescription'] = $value;
447
448
        return $this;
449
    }
450
451
    /**
452
     * @param string $value
453
     *
454
     * @return $this
455
     */
456
    public function withProjectType($value)
457
    {
458
        $this->data['ProjectType'] = $value;
459
        $this->options['form_params']['ProjectType'] = $value;
460
461
        return $this;
462
    }
463
}
464
465
/**
466
 * @method string getProduct()
467
 * @method string getModelId()
468
 * @method string getProjectId()
469
 */
470
class DeleteModel extends Rpc
471
{
472
473
    /**
474
     * @param string $value
475
     *
476
     * @return $this
477
     */
478
    public function withProduct($value)
479
    {
480
        $this->data['Product'] = $value;
481
        $this->options['form_params']['Product'] = $value;
482
483
        return $this;
484
    }
485
486
    /**
487
     * @param string $value
488
     *
489
     * @return $this
490
     */
491
    public function withModelId($value)
492
    {
493
        $this->data['ModelId'] = $value;
494
        $this->options['form_params']['ModelId'] = $value;
495
496
        return $this;
497
    }
498
499
    /**
500
     * @param string $value
501
     *
502
     * @return $this
503
     */
504
    public function withProjectId($value)
505
    {
506
        $this->data['ProjectId'] = $value;
507
        $this->options['form_params']['ProjectId'] = $value;
508
509
        return $this;
510
    }
511
}
512
513
/**
514
 * @method string getProduct()
515
 * @method string getModelId()
516
 * @method string getOptType()
517
 * @method string getProjectId()
518
 * @method string getModelVersion()
519
 */
520
class DeployModel extends Rpc
521
{
522
523
    /**
524
     * @param string $value
525
     *
526
     * @return $this
527
     */
528
    public function withProduct($value)
529
    {
530
        $this->data['Product'] = $value;
531
        $this->options['form_params']['Product'] = $value;
532
533
        return $this;
534
    }
535
536
    /**
537
     * @param string $value
538
     *
539
     * @return $this
540
     */
541
    public function withModelId($value)
542
    {
543
        $this->data['ModelId'] = $value;
544
        $this->options['form_params']['ModelId'] = $value;
545
546
        return $this;
547
    }
548
549
    /**
550
     * @param string $value
551
     *
552
     * @return $this
553
     */
554
    public function withOptType($value)
555
    {
556
        $this->data['OptType'] = $value;
557
        $this->options['form_params']['OptType'] = $value;
558
559
        return $this;
560
    }
561
562
    /**
563
     * @param string $value
564
     *
565
     * @return $this
566
     */
567
    public function withProjectId($value)
568
    {
569
        $this->data['ProjectId'] = $value;
570
        $this->options['form_params']['ProjectId'] = $value;
571
572
        return $this;
573
    }
574
575
    /**
576
     * @param string $value
577
     *
578
     * @return $this
579
     */
580
    public function withModelVersion($value)
581
    {
582
        $this->data['ModelVersion'] = $value;
583
        $this->options['form_params']['ModelVersion'] = $value;
584
585
        return $this;
586
    }
587
}
588
589
/**
590
 * @method string getProduct()
591
 * @method $this withProduct($value)
592
 * @method string getAsyncPredictId()
593
 * @method $this withAsyncPredictId($value)
594
 */
595
class GetAsyncPredict extends Rpc
596
{
597
598
    /** @var string */
599
    public $method = 'GET';
600
}
601
602
/**
603
 * @method string getProduct()
604
 * @method string getModelId()
605
 * @method string getProjectId()
606
 * @method string getModelVersion()
607
 */
608
class GetModel extends Rpc
609
{
610
611
    /**
612
     * @param string $value
613
     *
614
     * @return $this
615
     */
616
    public function withProduct($value)
617
    {
618
        $this->data['Product'] = $value;
619
        $this->options['form_params']['Product'] = $value;
620
621
        return $this;
622
    }
623
624
    /**
625
     * @param string $value
626
     *
627
     * @return $this
628
     */
629
    public function withModelId($value)
630
    {
631
        $this->data['ModelId'] = $value;
632
        $this->options['form_params']['ModelId'] = $value;
633
634
        return $this;
635
    }
636
637
    /**
638
     * @param string $value
639
     *
640
     * @return $this
641
     */
642
    public function withProjectId($value)
643
    {
644
        $this->data['ProjectId'] = $value;
645
        $this->options['form_params']['ProjectId'] = $value;
646
647
        return $this;
648
    }
649
650
    /**
651
     * @param string $value
652
     *
653
     * @return $this
654
     */
655
    public function withModelVersion($value)
656
    {
657
        $this->data['ModelVersion'] = $value;
658
        $this->options['form_params']['ModelVersion'] = $value;
659
660
        return $this;
661
    }
662
}
663
664
/**
665
 * @method string getTopK()
666
 * @method string getProduct()
667
 * @method string getModelId()
668
 * @method string getDetailTag()
669
 * @method string getContent()
670
 * @method string getModelVersion()
671
 */
672
class GetPredictResult extends Rpc
673
{
674
675
    /**
676
     * @param string $value
677
     *
678
     * @return $this
679
     */
680
    public function withTopK($value)
681
    {
682
        $this->data['TopK'] = $value;
683
        $this->options['form_params']['TopK'] = $value;
684
685
        return $this;
686
    }
687
688
    /**
689
     * @param string $value
690
     *
691
     * @return $this
692
     */
693
    public function withProduct($value)
694
    {
695
        $this->data['Product'] = $value;
696
        $this->options['form_params']['Product'] = $value;
697
698
        return $this;
699
    }
700
701
    /**
702
     * @param string $value
703
     *
704
     * @return $this
705
     */
706
    public function withModelId($value)
707
    {
708
        $this->data['ModelId'] = $value;
709
        $this->options['form_params']['ModelId'] = $value;
710
711
        return $this;
712
    }
713
714
    /**
715
     * @param string $value
716
     *
717
     * @return $this
718
     */
719
    public function withDetailTag($value)
720
    {
721
        $this->data['DetailTag'] = $value;
722
        $this->options['form_params']['DetailTag'] = $value;
723
724
        return $this;
725
    }
726
727
    /**
728
     * @param string $value
729
     *
730
     * @return $this
731
     */
732
    public function withContent($value)
733
    {
734
        $this->data['Content'] = $value;
735
        $this->options['form_params']['Content'] = $value;
736
737
        return $this;
738
    }
739
740
    /**
741
     * @param string $value
742
     *
743
     * @return $this
744
     */
745
    public function withModelVersion($value)
746
    {
747
        $this->data['ModelVersion'] = $value;
748
        $this->options['form_params']['ModelVersion'] = $value;
749
750
        return $this;
751
    }
752
}
753
754
/**
755
 * @method string getProduct()
756
 * @method string getPageNumber()
757
 * @method string getPageSize()
758
 * @method string getProjectId()
759
 */
760
class ListDataset extends Rpc
761
{
762
763
    /**
764
     * @param string $value
765
     *
766
     * @return $this
767
     */
768
    public function withProduct($value)
769
    {
770
        $this->data['Product'] = $value;
771
        $this->options['form_params']['Product'] = $value;
772
773
        return $this;
774
    }
775
776
    /**
777
     * @param string $value
778
     *
779
     * @return $this
780
     */
781
    public function withPageNumber($value)
782
    {
783
        $this->data['PageNumber'] = $value;
784
        $this->options['form_params']['PageNumber'] = $value;
785
786
        return $this;
787
    }
788
789
    /**
790
     * @param string $value
791
     *
792
     * @return $this
793
     */
794
    public function withPageSize($value)
795
    {
796
        $this->data['PageSize'] = $value;
797
        $this->options['form_params']['PageSize'] = $value;
798
799
        return $this;
800
    }
801
802
    /**
803
     * @param string $value
804
     *
805
     * @return $this
806
     */
807
    public function withProjectId($value)
808
    {
809
        $this->data['ProjectId'] = $value;
810
        $this->options['form_params']['ProjectId'] = $value;
811
812
        return $this;
813
    }
814
}
815
816
/**
817
 * @method string getProduct()
818
 * @method string getPageNumber()
819
 * @method string getPageSize()
820
 * @method string getProjectId()
821
 */
822
class ListModels extends Rpc
823
{
824
825
    /**
826
     * @param string $value
827
     *
828
     * @return $this
829
     */
830
    public function withProduct($value)
831
    {
832
        $this->data['Product'] = $value;
833
        $this->options['form_params']['Product'] = $value;
834
835
        return $this;
836
    }
837
838
    /**
839
     * @param string $value
840
     *
841
     * @return $this
842
     */
843
    public function withPageNumber($value)
844
    {
845
        $this->data['PageNumber'] = $value;
846
        $this->options['form_params']['PageNumber'] = $value;
847
848
        return $this;
849
    }
850
851
    /**
852
     * @param string $value
853
     *
854
     * @return $this
855
     */
856
    public function withPageSize($value)
857
    {
858
        $this->data['PageSize'] = $value;
859
        $this->options['form_params']['PageSize'] = $value;
860
861
        return $this;
862
    }
863
864
    /**
865
     * @param string $value
866
     *
867
     * @return $this
868
     */
869
    public function withProjectId($value)
870
    {
871
        $this->data['ProjectId'] = $value;
872
        $this->options['form_params']['ProjectId'] = $value;
873
874
        return $this;
875
    }
876
}
877
878
/**
879
 * @method string getProduct()
880
 * @method string getContactScene()
881
 * @method string getContactPath()
882
 */
883
class RunContactReview extends Rpc
884
{
885
886
    /**
887
     * @param string $value
888
     *
889
     * @return $this
890
     */
891
    public function withProduct($value)
892
    {
893
        $this->data['Product'] = $value;
894
        $this->options['form_params']['Product'] = $value;
895
896
        return $this;
897
    }
898
899
    /**
900
     * @param string $value
901
     *
902
     * @return $this
903
     */
904
    public function withContactScene($value)
905
    {
906
        $this->data['ContactScene'] = $value;
907
        $this->options['form_params']['ContactScene'] = $value;
908
909
        return $this;
910
    }
911
912
    /**
913
     * @param string $value
914
     *
915
     * @return $this
916
     */
917
    public function withContactPath($value)
918
    {
919
        $this->data['ContactPath'] = $value;
920
        $this->options['form_params']['ContactPath'] = $value;
921
922
        return $this;
923
    }
924
}
925
926
/**
927
 * @method string getProduct()
928
 * @method string getPredictContent()
929
 * @method string getServiceVersion()
930
 * @method string getServiceName()
931
 */
932
class RunPreTrainService extends Rpc
933
{
934
935
    /**
936
     * @param string $value
937
     *
938
     * @return $this
939
     */
940
    public function withProduct($value)
941
    {
942
        $this->data['Product'] = $value;
943
        $this->options['form_params']['Product'] = $value;
944
945
        return $this;
946
    }
947
948
    /**
949
     * @param string $value
950
     *
951
     * @return $this
952
     */
953
    public function withPredictContent($value)
954
    {
955
        $this->data['PredictContent'] = $value;
956
        $this->options['form_params']['PredictContent'] = $value;
957
958
        return $this;
959
    }
960
961
    /**
962
     * @param string $value
963
     *
964
     * @return $this
965
     */
966
    public function withServiceVersion($value)
967
    {
968
        $this->data['ServiceVersion'] = $value;
969
        $this->options['form_params']['ServiceVersion'] = $value;
970
971
        return $this;
972
    }
973
974
    /**
975
     * @param string $value
976
     *
977
     * @return $this
978
     */
979
    public function withServiceName($value)
980
    {
981
        $this->data['ServiceName'] = $value;
982
        $this->options['form_params']['ServiceName'] = $value;
983
984
        return $this;
985
    }
986
}
987
988
/**
989
 * @method string getProduct()
990
 * @method string getSessionId()
991
 * @method string getRobotId()
992
 * @method string getParamContent()
993
 * @method string getServiceName()
994
 */
995
class RunSmartCallService extends Rpc
996
{
997
998
    /**
999
     * @param string $value
1000
     *
1001
     * @return $this
1002
     */
1003
    public function withProduct($value)
1004
    {
1005
        $this->data['Product'] = $value;
1006
        $this->options['form_params']['Product'] = $value;
1007
1008
        return $this;
1009
    }
1010
1011
    /**
1012
     * @param string $value
1013
     *
1014
     * @return $this
1015
     */
1016
    public function withSessionId($value)
1017
    {
1018
        $this->data['SessionId'] = $value;
1019
        $this->options['form_params']['SessionId'] = $value;
1020
1021
        return $this;
1022
    }
1023
1024
    /**
1025
     * @param string $value
1026
     *
1027
     * @return $this
1028
     */
1029
    public function withRobotId($value)
1030
    {
1031
        $this->data['RobotId'] = $value;
1032
        $this->options['form_params']['RobotId'] = $value;
1033
1034
        return $this;
1035
    }
1036
1037
    /**
1038
     * @param string $value
1039
     *
1040
     * @return $this
1041
     */
1042
    public function withParamContent($value)
1043
    {
1044
        $this->data['ParamContent'] = $value;
1045
        $this->options['form_params']['ParamContent'] = $value;
1046
1047
        return $this;
1048
    }
1049
1050
    /**
1051
     * @param string $value
1052
     *
1053
     * @return $this
1054
     */
1055
    public function withServiceName($value)
1056
    {
1057
        $this->data['ServiceName'] = $value;
1058
        $this->options['form_params']['ServiceName'] = $value;
1059
1060
        return $this;
1061
    }
1062
}
1063