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 ( 632f80...ba3d49 )
by
unknown
06:15
created

RunPreTrainServiceNew::withProduct()   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\NlpAutoml\V20191111;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateAsyncPredict createAsyncPredict(array $options = [])
9
 * @method FindUserReport4Alinlp findUserReport4Alinlp(array $options = [])
10
 * @method GetAsyncPredict getAsyncPredict(array $options = [])
11
 * @method GetPredictResult getPredictResult(array $options = [])
12
 * @method RunPreTrainService runPreTrainService(array $options = [])
13
 * @method RunPreTrainServiceNew runPreTrainServiceNew(array $options = [])
14
 */
15
class NlpAutomlApiResolver extends ApiResolver
16
{
17
}
18
19
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
20
{
21
    /** @var string */
22
    public $product = 'nlp-automl';
23
24
    /** @var string */
25
    public $version = '2019-11-11';
26
27
    /** @var string */
28
    public $method = 'POST';
29
}
30
31
/**
32
 * @method string getTopK()
33
 * @method string getFileType()
34
 * @method string getDetailTag()
35
 * @method string getFetchContent()
36
 * @method string getContent()
37
 * @method string getFileContent()
38
 * @method string getServiceName()
39
 * @method string getProduct()
40
 * @method string getModelId()
41
 * @method string getServiceVersion()
42
 * @method string getFileUrl()
43
 * @method string getModelVersion()
44
 */
45
class CreateAsyncPredict extends Rpc
46
{
47
48
    /**
49
     * @param string $value
50
     *
51
     * @return $this
52
     */
53
    public function withTopK($value)
54
    {
55
        $this->data['TopK'] = $value;
56
        $this->options['form_params']['TopK'] = $value;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @param string $value
63
     *
64
     * @return $this
65
     */
66
    public function withFileType($value)
67
    {
68
        $this->data['FileType'] = $value;
69
        $this->options['form_params']['FileType'] = $value;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $value
76
     *
77
     * @return $this
78
     */
79
    public function withDetailTag($value)
80
    {
81
        $this->data['DetailTag'] = $value;
82
        $this->options['form_params']['DetailTag'] = $value;
83
84
        return $this;
85
    }
86
87
    /**
88
     * @param string $value
89
     *
90
     * @return $this
91
     */
92
    public function withFetchContent($value)
93
    {
94
        $this->data['FetchContent'] = $value;
95
        $this->options['form_params']['FetchContent'] = $value;
96
97
        return $this;
98
    }
99
100
    /**
101
     * @param string $value
102
     *
103
     * @return $this
104
     */
105
    public function withContent($value)
106
    {
107
        $this->data['Content'] = $value;
108
        $this->options['form_params']['Content'] = $value;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @param string $value
115
     *
116
     * @return $this
117
     */
118
    public function withFileContent($value)
119
    {
120
        $this->data['FileContent'] = $value;
121
        $this->options['form_params']['FileContent'] = $value;
122
123
        return $this;
124
    }
125
126
    /**
127
     * @param string $value
128
     *
129
     * @return $this
130
     */
131
    public function withServiceName($value)
132
    {
133
        $this->data['ServiceName'] = $value;
134
        $this->options['form_params']['ServiceName'] = $value;
135
136
        return $this;
137
    }
138
139
    /**
140
     * @param string $value
141
     *
142
     * @return $this
143
     */
144
    public function withProduct($value)
145
    {
146
        $this->data['Product'] = $value;
147
        $this->options['form_params']['Product'] = $value;
148
149
        return $this;
150
    }
151
152
    /**
153
     * @param string $value
154
     *
155
     * @return $this
156
     */
157
    public function withModelId($value)
158
    {
159
        $this->data['ModelId'] = $value;
160
        $this->options['form_params']['ModelId'] = $value;
161
162
        return $this;
163
    }
164
165
    /**
166
     * @param string $value
167
     *
168
     * @return $this
169
     */
170
    public function withServiceVersion($value)
171
    {
172
        $this->data['ServiceVersion'] = $value;
173
        $this->options['form_params']['ServiceVersion'] = $value;
174
175
        return $this;
176
    }
177
178
    /**
179
     * @param string $value
180
     *
181
     * @return $this
182
     */
183
    public function withFileUrl($value)
184
    {
185
        $this->data['FileUrl'] = $value;
186
        $this->options['form_params']['FileUrl'] = $value;
187
188
        return $this;
189
    }
190
191
    /**
192
     * @param string $value
193
     *
194
     * @return $this
195
     */
196
    public function withModelVersion($value)
197
    {
198
        $this->data['ModelVersion'] = $value;
199
        $this->options['form_params']['ModelVersion'] = $value;
200
201
        return $this;
202
    }
203
}
204
205
/**
206
 * @method string getCustomerUserParentId()
207
 * @method string getEndTime()
208
 * @method string getBeginTime()
209
 * @method string getType()
210
 * @method string getModelType()
211
 */
212
class FindUserReport4Alinlp extends Rpc
213
{
214
215
    /**
216
     * @param string $value
217
     *
218
     * @return $this
219
     */
220
    public function withCustomerUserParentId($value)
221
    {
222
        $this->data['CustomerUserParentId'] = $value;
223
        $this->options['form_params']['CustomerUserParentId'] = $value;
224
225
        return $this;
226
    }
227
228
    /**
229
     * @param string $value
230
     *
231
     * @return $this
232
     */
233
    public function withEndTime($value)
234
    {
235
        $this->data['EndTime'] = $value;
236
        $this->options['form_params']['EndTime'] = $value;
237
238
        return $this;
239
    }
240
241
    /**
242
     * @param string $value
243
     *
244
     * @return $this
245
     */
246
    public function withBeginTime($value)
247
    {
248
        $this->data['BeginTime'] = $value;
249
        $this->options['form_params']['BeginTime'] = $value;
250
251
        return $this;
252
    }
253
254
    /**
255
     * @param string $value
256
     *
257
     * @return $this
258
     */
259
    public function withType($value)
260
    {
261
        $this->data['Type'] = $value;
262
        $this->options['form_params']['Type'] = $value;
263
264
        return $this;
265
    }
266
267
    /**
268
     * @param string $value
269
     *
270
     * @return $this
271
     */
272
    public function withModelType($value)
273
    {
274
        $this->data['ModelType'] = $value;
275
        $this->options['form_params']['ModelType'] = $value;
276
277
        return $this;
278
    }
279
}
280
281
/**
282
 * @method string getProduct()
283
 * @method $this withProduct($value)
284
 * @method string getAsyncPredictId()
285
 * @method $this withAsyncPredictId($value)
286
 */
287
class GetAsyncPredict extends Rpc
288
{
289
290
    /** @var string */
291
    public $method = 'GET';
292
}
293
294
/**
295
 * @method string getTopK()
296
 * @method string getProduct()
297
 * @method string getModelId()
298
 * @method string getDetailTag()
299
 * @method string getContent()
300
 * @method string getModelVersion()
301
 */
302
class GetPredictResult extends Rpc
303
{
304
305
    /**
306
     * @param string $value
307
     *
308
     * @return $this
309
     */
310
    public function withTopK($value)
311
    {
312
        $this->data['TopK'] = $value;
313
        $this->options['form_params']['TopK'] = $value;
314
315
        return $this;
316
    }
317
318
    /**
319
     * @param string $value
320
     *
321
     * @return $this
322
     */
323
    public function withProduct($value)
324
    {
325
        $this->data['Product'] = $value;
326
        $this->options['form_params']['Product'] = $value;
327
328
        return $this;
329
    }
330
331
    /**
332
     * @param string $value
333
     *
334
     * @return $this
335
     */
336
    public function withModelId($value)
337
    {
338
        $this->data['ModelId'] = $value;
339
        $this->options['form_params']['ModelId'] = $value;
340
341
        return $this;
342
    }
343
344
    /**
345
     * @param string $value
346
     *
347
     * @return $this
348
     */
349
    public function withDetailTag($value)
350
    {
351
        $this->data['DetailTag'] = $value;
352
        $this->options['form_params']['DetailTag'] = $value;
353
354
        return $this;
355
    }
356
357
    /**
358
     * @param string $value
359
     *
360
     * @return $this
361
     */
362
    public function withContent($value)
363
    {
364
        $this->data['Content'] = $value;
365
        $this->options['form_params']['Content'] = $value;
366
367
        return $this;
368
    }
369
370
    /**
371
     * @param string $value
372
     *
373
     * @return $this
374
     */
375
    public function withModelVersion($value)
376
    {
377
        $this->data['ModelVersion'] = $value;
378
        $this->options['form_params']['ModelVersion'] = $value;
379
380
        return $this;
381
    }
382
}
383
384
/**
385
 * @method string getProduct()
386
 * @method string getPredictContent()
387
 * @method string getServiceVersion()
388
 * @method string getServiceName()
389
 */
390
class RunPreTrainService extends Rpc
391
{
392
393
    /**
394
     * @param string $value
395
     *
396
     * @return $this
397
     */
398
    public function withProduct($value)
399
    {
400
        $this->data['Product'] = $value;
401
        $this->options['form_params']['Product'] = $value;
402
403
        return $this;
404
    }
405
406
    /**
407
     * @param string $value
408
     *
409
     * @return $this
410
     */
411
    public function withPredictContent($value)
412
    {
413
        $this->data['PredictContent'] = $value;
414
        $this->options['form_params']['PredictContent'] = $value;
415
416
        return $this;
417
    }
418
419
    /**
420
     * @param string $value
421
     *
422
     * @return $this
423
     */
424
    public function withServiceVersion($value)
425
    {
426
        $this->data['ServiceVersion'] = $value;
427
        $this->options['form_params']['ServiceVersion'] = $value;
428
429
        return $this;
430
    }
431
432
    /**
433
     * @param string $value
434
     *
435
     * @return $this
436
     */
437
    public function withServiceName($value)
438
    {
439
        $this->data['ServiceName'] = $value;
440
        $this->options['form_params']['ServiceName'] = $value;
441
442
        return $this;
443
    }
444
}
445
446
/**
447
 * @method string getProduct()
448
 * @method string getPredictContent()
449
 * @method string getServiceVersion()
450
 * @method string getServiceName()
451
 */
452
class RunPreTrainServiceNew extends Rpc
453
{
454
455
    /**
456
     * @param string $value
457
     *
458
     * @return $this
459
     */
460
    public function withProduct($value)
461
    {
462
        $this->data['Product'] = $value;
463
        $this->options['form_params']['Product'] = $value;
464
465
        return $this;
466
    }
467
468
    /**
469
     * @param string $value
470
     *
471
     * @return $this
472
     */
473
    public function withPredictContent($value)
474
    {
475
        $this->data['PredictContent'] = $value;
476
        $this->options['form_params']['PredictContent'] = $value;
477
478
        return $this;
479
    }
480
481
    /**
482
     * @param string $value
483
     *
484
     * @return $this
485
     */
486
    public function withServiceVersion($value)
487
    {
488
        $this->data['ServiceVersion'] = $value;
489
        $this->options['form_params']['ServiceVersion'] = $value;
490
491
        return $this;
492
    }
493
494
    /**
495
     * @param string $value
496
     *
497
     * @return $this
498
     */
499
    public function withServiceName($value)
500
    {
501
        $this->data['ServiceName'] = $value;
502
        $this->options['form_params']['ServiceName'] = $value;
503
504
        return $this;
505
    }
506
}
507