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 ( 161c26...a78acf )
by
unknown
04:41
created

ReleaseSortScript   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 12
c 1
b 0
f 0
dl 0
loc 45
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A withAppGroupIdentity() 0 6 1
A withScriptName() 0 6 1
A withAppVersionId() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\OpenSearch\V20171225;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CompileSortScript compileSortScript(array $options = [])
9
 * @method CreateSortScript createSortScript(array $options = [])
10
 * @method DeleteSortScript deleteSortScript(array $options = [])
11
 * @method DescribeRegions describeRegions(array $options = [])
12
 * @method GetSortScript getSortScript(array $options = [])
13
 * @method GetSortScriptFile getSortScriptFile(array $options = [])
14
 * @method ListApps listApps(array $options = [])
15
 * @method ListSortScripts listSortScripts(array $options = [])
16
 * @method ReleaseSortScript releaseSortScript(array $options = [])
17
 * @method SaveSortScriptFile saveSortScriptFile(array $options = [])
18
 */
19
class OpenSearchApiResolver extends ApiResolver
20
{
21
}
22
23
class Roa extends \AlibabaCloud\Client\Resolver\Roa
24
{
25
    /** @var string */
26
    public $product = 'OpenSearch';
27
28
    /** @var string */
29
    public $version = '2017-12-25';
30
31
    /** @var string */
32
    public $serviceCode = 'opensearch';
33
}
34
35
/**
36
 * @method string getAppVersionId()
37
 * @method string getScriptName()
38
 * @method string getAppGroupIdentity()
39
 */
40
class CompileSortScript extends Roa
41
{
42
    /** @var string */
43
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/actions/compiling';
44
45
    /** @var string */
46
    public $method = 'POST';
47
48
    /**
49
     * @param string $value
50
     *
51
     * @return $this
52
     */
53
    public function withAppVersionId($value)
54
    {
55
        $this->data['AppVersionId'] = $value;
56
        $this->pathParameters['appVersionId'] = $value;
57
58
        return $this;
59
    }
60
61
    /**
62
     * @param string $value
63
     *
64
     * @return $this
65
     */
66
    public function withScriptName($value)
67
    {
68
        $this->data['ScriptName'] = $value;
69
        $this->pathParameters['scriptName'] = $value;
70
71
        return $this;
72
    }
73
74
    /**
75
     * @param string $value
76
     *
77
     * @return $this
78
     */
79
    public function withAppGroupIdentity($value)
80
    {
81
        $this->data['AppGroupIdentity'] = $value;
82
        $this->pathParameters['appGroupIdentity'] = $value;
83
84
        return $this;
85
    }
86
}
87
88
/**
89
 * @method string getAppVersionId()
90
 * @method string getAppGroupIdentity()
91
 */
92
class CreateSortScript extends Roa
93
{
94
    /** @var string */
95
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts';
96
97
    /** @var string */
98
    public $method = 'POST';
99
100
    /**
101
     * @param string $value
102
     *
103
     * @return $this
104
     */
105
    public function withAppVersionId($value)
106
    {
107
        $this->data['AppVersionId'] = $value;
108
        $this->pathParameters['appVersionId'] = $value;
109
110
        return $this;
111
    }
112
113
    /**
114
     * @param string $value
115
     *
116
     * @return $this
117
     */
118
    public function withAppGroupIdentity($value)
119
    {
120
        $this->data['AppGroupIdentity'] = $value;
121
        $this->pathParameters['appGroupIdentity'] = $value;
122
123
        return $this;
124
    }
125
}
126
127
/**
128
 * @method string getAppVersionId()
129
 * @method string getScriptName()
130
 * @method string getAppGroupIdentity()
131
 */
132
class DeleteSortScript extends Roa
133
{
134
    /** @var string */
135
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]';
136
137
    /** @var string */
138
    public $method = 'DELETE';
139
140
    /**
141
     * @param string $value
142
     *
143
     * @return $this
144
     */
145
    public function withAppVersionId($value)
146
    {
147
        $this->data['AppVersionId'] = $value;
148
        $this->pathParameters['appVersionId'] = $value;
149
150
        return $this;
151
    }
152
153
    /**
154
     * @param string $value
155
     *
156
     * @return $this
157
     */
158
    public function withScriptName($value)
159
    {
160
        $this->data['ScriptName'] = $value;
161
        $this->pathParameters['scriptName'] = $value;
162
163
        return $this;
164
    }
165
166
    /**
167
     * @param string $value
168
     *
169
     * @return $this
170
     */
171
    public function withAppGroupIdentity($value)
172
    {
173
        $this->data['AppGroupIdentity'] = $value;
174
        $this->pathParameters['appGroupIdentity'] = $value;
175
176
        return $this;
177
    }
178
}
179
180
/**
181
 * @method string getAcceptLanguage()
182
 */
183
class DescribeRegions extends Roa
184
{
185
    /** @var string */
186
    public $pathPattern = '/v4/openapi/regions';
187
188
    /**
189
     * @param string $value
190
     *
191
     * @return $this
192
     */
193
    public function withAcceptLanguage($value)
194
    {
195
        $this->data['AcceptLanguage'] = $value;
196
        $this->options['query']['accept_language'] = $value;
197
198
        return $this;
199
    }
200
}
201
202
/**
203
 * @method string getAppVersionId()
204
 * @method string getScriptName()
205
 * @method string getAppGroupIdentity()
206
 */
207
class GetSortScript extends Roa
208
{
209
    /** @var string */
210
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]';
211
212
    /**
213
     * @param string $value
214
     *
215
     * @return $this
216
     */
217
    public function withAppVersionId($value)
218
    {
219
        $this->data['AppVersionId'] = $value;
220
        $this->pathParameters['appVersionId'] = $value;
221
222
        return $this;
223
    }
224
225
    /**
226
     * @param string $value
227
     *
228
     * @return $this
229
     */
230
    public function withScriptName($value)
231
    {
232
        $this->data['ScriptName'] = $value;
233
        $this->pathParameters['scriptName'] = $value;
234
235
        return $this;
236
    }
237
238
    /**
239
     * @param string $value
240
     *
241
     * @return $this
242
     */
243
    public function withAppGroupIdentity($value)
244
    {
245
        $this->data['AppGroupIdentity'] = $value;
246
        $this->pathParameters['appGroupIdentity'] = $value;
247
248
        return $this;
249
    }
250
}
251
252
/**
253
 * @method string getAppVersionId()
254
 * @method string getScriptName()
255
 * @method string getAppGroupIdentity()
256
 */
257
class GetSortScriptFile extends Roa
258
{
259
    /** @var string */
260
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/UserScorer.cava';
261
262
    /**
263
     * @param string $value
264
     *
265
     * @return $this
266
     */
267
    public function withAppVersionId($value)
268
    {
269
        $this->data['AppVersionId'] = $value;
270
        $this->pathParameters['appVersionId'] = $value;
271
272
        return $this;
273
    }
274
275
    /**
276
     * @param string $value
277
     *
278
     * @return $this
279
     */
280
    public function withScriptName($value)
281
    {
282
        $this->data['ScriptName'] = $value;
283
        $this->pathParameters['scriptName'] = $value;
284
285
        return $this;
286
    }
287
288
    /**
289
     * @param string $value
290
     *
291
     * @return $this
292
     */
293
    public function withAppGroupIdentity($value)
294
    {
295
        $this->data['AppGroupIdentity'] = $value;
296
        $this->pathParameters['appGroupIdentity'] = $value;
297
298
        return $this;
299
    }
300
}
301
302
/**
303
 * @method string getSize()
304
 * @method string getPage()
305
 * @method string getGroup()
306
 */
307
class ListApps extends Roa
308
{
309
    /** @var string */
310
    public $pathPattern = '/v4/openapi/apps';
311
312
    /**
313
     * @param string $value
314
     *
315
     * @return $this
316
     */
317
    public function withSize($value)
318
    {
319
        $this->data['Size'] = $value;
320
        $this->options['query']['size'] = $value;
321
322
        return $this;
323
    }
324
325
    /**
326
     * @param string $value
327
     *
328
     * @return $this
329
     */
330
    public function withPage($value)
331
    {
332
        $this->data['Page'] = $value;
333
        $this->options['query']['page'] = $value;
334
335
        return $this;
336
    }
337
338
    /**
339
     * @param string $value
340
     *
341
     * @return $this
342
     */
343
    public function withGroup($value)
344
    {
345
        $this->data['Group'] = $value;
346
        $this->options['query']['group'] = $value;
347
348
        return $this;
349
    }
350
}
351
352
/**
353
 * @method string getAppVersionId()
354
 * @method string getAppGroupIdentity()
355
 */
356
class ListSortScripts extends Roa
357
{
358
    /** @var string */
359
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts';
360
361
    /**
362
     * @param string $value
363
     *
364
     * @return $this
365
     */
366
    public function withAppVersionId($value)
367
    {
368
        $this->data['AppVersionId'] = $value;
369
        $this->pathParameters['appVersionId'] = $value;
370
371
        return $this;
372
    }
373
374
    /**
375
     * @param string $value
376
     *
377
     * @return $this
378
     */
379
    public function withAppGroupIdentity($value)
380
    {
381
        $this->data['AppGroupIdentity'] = $value;
382
        $this->pathParameters['appGroupIdentity'] = $value;
383
384
        return $this;
385
    }
386
}
387
388
/**
389
 * @method string getAppVersionId()
390
 * @method string getScriptName()
391
 * @method string getAppGroupIdentity()
392
 */
393
class ReleaseSortScript extends Roa
394
{
395
    /** @var string */
396
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/actions/release';
397
398
    /** @var string */
399
    public $method = 'POST';
400
401
    /**
402
     * @param string $value
403
     *
404
     * @return $this
405
     */
406
    public function withAppVersionId($value)
407
    {
408
        $this->data['AppVersionId'] = $value;
409
        $this->pathParameters['appVersionId'] = $value;
410
411
        return $this;
412
    }
413
414
    /**
415
     * @param string $value
416
     *
417
     * @return $this
418
     */
419
    public function withScriptName($value)
420
    {
421
        $this->data['ScriptName'] = $value;
422
        $this->pathParameters['scriptName'] = $value;
423
424
        return $this;
425
    }
426
427
    /**
428
     * @param string $value
429
     *
430
     * @return $this
431
     */
432
    public function withAppGroupIdentity($value)
433
    {
434
        $this->data['AppGroupIdentity'] = $value;
435
        $this->pathParameters['appGroupIdentity'] = $value;
436
437
        return $this;
438
    }
439
}
440
441
/**
442
 * @method string getAppVersionId()
443
 * @method string getScriptName()
444
 * @method string getAppGroupIdentity()
445
 */
446
class SaveSortScriptFile extends Roa
447
{
448
    /** @var string */
449
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/UserScorer.cava';
450
451
    /** @var string */
452
    public $method = 'PUT';
453
454
    /**
455
     * @param string $value
456
     *
457
     * @return $this
458
     */
459
    public function withAppVersionId($value)
460
    {
461
        $this->data['AppVersionId'] = $value;
462
        $this->pathParameters['appVersionId'] = $value;
463
464
        return $this;
465
    }
466
467
    /**
468
     * @param string $value
469
     *
470
     * @return $this
471
     */
472
    public function withScriptName($value)
473
    {
474
        $this->data['ScriptName'] = $value;
475
        $this->pathParameters['scriptName'] = $value;
476
477
        return $this;
478
    }
479
480
    /**
481
     * @param string $value
482
     *
483
     * @return $this
484
     */
485
    public function withAppGroupIdentity($value)
486
    {
487
        $this->data['AppGroupIdentity'] = $value;
488
        $this->pathParameters['appGroupIdentity'] = $value;
489
490
        return $this;
491
    }
492
}
493