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 ( fc7852...ef1b58 )
by
unknown
04:29
created

GetJobStatus::withJobId()   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 MakeSuperResolutionImage makeSuperResolutionImage(array $options = [])
15
 * @method RecognizeImageColor recognizeImageColor(array $options = [])
16
 * @method RecognizeImageStyle recognizeImageStyle(array $options = [])
17
 * @method RecolorImage recolorImage(array $options = [])
18
 * @method SegmentBody segmentBody(array $options = [])
19
 * @method SegmentImage segmentImage(array $options = [])
20
 */
21
class IvpdApiResolver extends ApiResolver
22
{
23
}
24
25
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
26
{
27
    /** @var string */
28
    public $product = 'ivpd';
29
30
    /** @var string */
31
    public $version = '2019-06-25';
32
33
    /** @var string */
34
    public $method = 'POST';
35
}
36
37
/**
38
 * @method string getUrl()
39
 * @method string getWidth()
40
 * @method string getHeight()
41
 */
42
class ChangeImageSize extends Rpc
43
{
44
45
    /**
46
     * @param string $value
47
     *
48
     * @return $this
49
     */
50
    public function withUrl($value)
51
    {
52
        $this->data['Url'] = $value;
53
        $this->options['form_params']['Url'] = $value;
54
55
        return $this;
56
    }
57
58
    /**
59
     * @param string $value
60
     *
61
     * @return $this
62
     */
63
    public function withWidth($value)
64
    {
65
        $this->data['Width'] = $value;
66
        $this->options['form_params']['Width'] = $value;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @param string $value
73
     *
74
     * @return $this
75
     */
76
    public function withHeight($value)
77
    {
78
        $this->data['Height'] = $value;
79
        $this->options['form_params']['Height'] = $value;
80
81
        return $this;
82
    }
83
}
84
85
/**
86
 * @method array getDataList()
87
 * @method string getAsync()
88
 * @method string getJobId()
89
 * @method string getTimeToLive()
90
 */
91
class CreateSegmentBodyJob extends Rpc
92
{
93
94
    /**
95
     * @param array $dataList
96
     *
97
     * @return $this
98
     */
99
	public function withDataList(array $dataList)
100
	{
101
	    $this->data['DataList'] = $dataList;
102
		foreach ($dataList as $depth1 => $depth1Value) {
103
			if(isset($depth1Value['DataId'])){
104
				$this->options['form_params']['DataList.' . ($depth1 + 1) . '.DataId'] = $depth1Value['DataId'];
105
			}
106
			if(isset($depth1Value['ImageUrl'])){
107
				$this->options['form_params']['DataList.' . ($depth1 + 1) . '.ImageUrl'] = $depth1Value['ImageUrl'];
108
			}
109
		}
110
111
		return $this;
112
    }
113
114
    /**
115
     * @param string $value
116
     *
117
     * @return $this
118
     */
119
    public function withAsync($value)
120
    {
121
        $this->data['Async'] = $value;
122
        $this->options['form_params']['Async'] = $value;
123
124
        return $this;
125
    }
126
127
    /**
128
     * @param string $value
129
     *
130
     * @return $this
131
     */
132
    public function withJobId($value)
133
    {
134
        $this->data['JobId'] = $value;
135
        $this->options['form_params']['JobId'] = $value;
136
137
        return $this;
138
    }
139
140
    /**
141
     * @param string $value
142
     *
143
     * @return $this
144
     */
145
    public function withTimeToLive($value)
146
    {
147
        $this->data['TimeToLive'] = $value;
148
        $this->options['form_params']['TimeToLive'] = $value;
149
150
        return $this;
151
    }
152
}
153
154
/**
155
 * @method string getUrl()
156
 */
157
class DetectImageElements extends Rpc
158
{
159
160
    /**
161
     * @param string $value
162
     *
163
     * @return $this
164
     */
165
    public function withUrl($value)
166
    {
167
        $this->data['Url'] = $value;
168
        $this->options['form_params']['Url'] = $value;
169
170
        return $this;
171
    }
172
}
173
174
/**
175
 * @method string getMajorUrl()
176
 * @method string getStyleUrl()
177
 */
178
class ExtendImageStyle extends Rpc
179
{
180
181
    /**
182
     * @param string $value
183
     *
184
     * @return $this
185
     */
186
    public function withMajorUrl($value)
187
    {
188
        $this->data['MajorUrl'] = $value;
189
        $this->options['form_params']['MajorUrl'] = $value;
190
191
        return $this;
192
    }
193
194
    /**
195
     * @param string $value
196
     *
197
     * @return $this
198
     */
199
    public function withStyleUrl($value)
200
    {
201
        $this->data['StyleUrl'] = $value;
202
        $this->options['form_params']['StyleUrl'] = $value;
203
204
        return $this;
205
    }
206
}
207
208
/**
209
 * @method string getJobId()
210
 */
211
class GetJobResult extends Rpc
212
{
213
214
    /**
215
     * @param string $value
216
     *
217
     * @return $this
218
     */
219
    public function withJobId($value)
220
    {
221
        $this->data['JobId'] = $value;
222
        $this->options['form_params']['JobId'] = $value;
223
224
        return $this;
225
    }
226
}
227
228
/**
229
 * @method string getJobId()
230
 */
231
class GetJobStatus extends Rpc
232
{
233
234
    /**
235
     * @param string $value
236
     *
237
     * @return $this
238
     */
239
    public function withJobId($value)
240
    {
241
        $this->data['JobId'] = $value;
242
        $this->options['form_params']['JobId'] = $value;
243
244
        return $this;
245
    }
246
}
247
248
/**
249
 * @method string getUrl()
250
 */
251
class MakeSuperResolutionImage extends Rpc
252
{
253
254
    /**
255
     * @param string $value
256
     *
257
     * @return $this
258
     */
259
    public function withUrl($value)
260
    {
261
        $this->data['Url'] = $value;
262
        $this->options['form_params']['Url'] = $value;
263
264
        return $this;
265
    }
266
}
267
268
/**
269
 * @method string getUrl()
270
 * @method string getColorCount()
271
 */
272
class RecognizeImageColor extends Rpc
273
{
274
275
    /**
276
     * @param string $value
277
     *
278
     * @return $this
279
     */
280
    public function withUrl($value)
281
    {
282
        $this->data['Url'] = $value;
283
        $this->options['form_params']['Url'] = $value;
284
285
        return $this;
286
    }
287
288
    /**
289
     * @param string $value
290
     *
291
     * @return $this
292
     */
293
    public function withColorCount($value)
294
    {
295
        $this->data['ColorCount'] = $value;
296
        $this->options['form_params']['ColorCount'] = $value;
297
298
        return $this;
299
    }
300
}
301
302
/**
303
 * @method string getUrl()
304
 */
305
class RecognizeImageStyle extends Rpc
306
{
307
308
    /**
309
     * @param string $value
310
     *
311
     * @return $this
312
     */
313
    public function withUrl($value)
314
    {
315
        $this->data['Url'] = $value;
316
        $this->options['form_params']['Url'] = $value;
317
318
        return $this;
319
    }
320
}
321
322
/**
323
 * @method array getColorTemplate()
324
 * @method string getUrl()
325
 * @method string getMode()
326
 * @method string getColorCount()
327
 * @method string getRefUrl()
328
 */
329
class RecolorImage extends Rpc
330
{
331
332
    /**
333
     * @param array $colorTemplate
334
     *
335
     * @return $this
336
     */
337
	public function withColorTemplate(array $colorTemplate)
338
	{
339
	    $this->data['ColorTemplate'] = $colorTemplate;
340
		foreach ($colorTemplate as $depth1 => $depth1Value) {
341
			if(isset($depth1Value['Color'])){
342
				$this->options['form_params']['ColorTemplate.' . ($depth1 + 1) . '.Color'] = $depth1Value['Color'];
343
			}
344
		}
345
346
		return $this;
347
    }
348
349
    /**
350
     * @param string $value
351
     *
352
     * @return $this
353
     */
354
    public function withUrl($value)
355
    {
356
        $this->data['Url'] = $value;
357
        $this->options['form_params']['Url'] = $value;
358
359
        return $this;
360
    }
361
362
    /**
363
     * @param string $value
364
     *
365
     * @return $this
366
     */
367
    public function withMode($value)
368
    {
369
        $this->data['Mode'] = $value;
370
        $this->options['form_params']['Mode'] = $value;
371
372
        return $this;
373
    }
374
375
    /**
376
     * @param string $value
377
     *
378
     * @return $this
379
     */
380
    public function withColorCount($value)
381
    {
382
        $this->data['ColorCount'] = $value;
383
        $this->options['form_params']['ColorCount'] = $value;
384
385
        return $this;
386
    }
387
388
    /**
389
     * @param string $value
390
     *
391
     * @return $this
392
     */
393
    public function withRefUrl($value)
394
    {
395
        $this->data['RefUrl'] = $value;
396
        $this->options['form_params']['RefUrl'] = $value;
397
398
        return $this;
399
    }
400
}
401
402
/**
403
 * @method string getImageUrl()
404
 */
405
class SegmentBody extends Rpc
406
{
407
408
    /**
409
     * @param string $value
410
     *
411
     * @return $this
412
     */
413
    public function withImageUrl($value)
414
    {
415
        $this->data['ImageUrl'] = $value;
416
        $this->options['form_params']['ImageUrl'] = $value;
417
418
        return $this;
419
    }
420
}
421
422
/**
423
 * @method string getUrl()
424
 */
425
class SegmentImage extends Rpc
426
{
427
428
    /**
429
     * @param string $value
430
     *
431
     * @return $this
432
     */
433
    public function withUrl($value)
434
    {
435
        $this->data['Url'] = $value;
436
        $this->options['form_params']['Url'] = $value;
437
438
        return $this;
439
    }
440
}
441