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 ( 6981c2...0b4a2b )
by
unknown
09:05
created

DeleteApp   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
c 1
b 0
f 0
dl 0
loc 19
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A withAppName() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\EsServerless\V20220822;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateApp createApp(array $options = [])
9
 * @method CreateDataStream createDataStream(array $options = [])
10
 * @method DeleteAccessToken deleteAccessToken(array $options = [])
11
 * @method DeleteApp deleteApp(array $options = [])
12
 * @method DeleteDataStream deleteDataStream(array $options = [])
13
 * @method DescibeRegions descibeRegions(array $options = [])
14
 * @method DisableAccessToken disableAccessToken(array $options = [])
15
 * @method EnableAccessToken enableAccessToken(array $options = [])
16
 * @method GenerateAcccessToken generateAcccessToken(array $options = [])
17
 * @method GetApp getApp(array $options = [])
18
 * @method GetDataStream getDataStream(array $options = [])
19
 * @method GetRegionInfo getRegionInfo(array $options = [])
20
 * @method ListAccessTokens listAccessTokens(array $options = [])
21
 * @method ListApps listApps(array $options = [])
22
 * @method ListDataStreams listDataStreams(array $options = [])
23
 * @method UpdateApp updateApp(array $options = [])
24
 * @method UpdateDataStream updateDataStream(array $options = [])
25
 */
26
class EsServerlessApiResolver extends ApiResolver
27
{
28
}
29
30
class Roa extends \AlibabaCloud\Client\Resolver\Roa
31
{
32
    /** @var string */
33
    public $product = 'es-serverless';
34
35
    /** @var string */
36
    public $version = '2022-08-22';
37
38
    /** @var string */
39
    public $serviceCode = 'elkxops';
40
}
41
42
/**
43
 * @method string getBody()
44
 */
45
class CreateApp extends Roa
46
{
47
    /** @var string */
48
    public $pathPattern = '/openapi/xops/instances';
49
50
    /** @var string */
51
    public $method = 'POST';
52
53
    /**
54
     * @param string $value
55
     *
56
     * @return $this
57
     */
58
    public function withBody($value)
59
    {
60
        $this->data['Body'] = $value;
61
        $this->options['form_params']['Body'] = $value;
62
63
        return $this;
64
    }
65
}
66
67
/**
68
 * @method string getAppName()
69
 * @method string getBody()
70
 */
71
class CreateDataStream extends Roa
72
{
73
    /** @var string */
74
    public $pathPattern = '/openapi/xops/instances/[appName]/data-streams';
75
76
    /** @var string */
77
    public $method = 'POST';
78
79
    /**
80
     * @param string $value
81
     *
82
     * @return $this
83
     */
84
    public function withAppName($value)
85
    {
86
        $this->data['AppName'] = $value;
87
        $this->pathParameters['appName'] = $value;
88
89
        return $this;
90
    }
91
92
    /**
93
     * @param string $value
94
     *
95
     * @return $this
96
     */
97
    public function withBody($value)
98
    {
99
        $this->data['Body'] = $value;
100
        $this->options['form_params']['Body'] = $value;
101
102
        return $this;
103
    }
104
}
105
106
/**
107
 * @method string getTokenId()
108
 */
109
class DeleteAccessToken extends Roa
110
{
111
    /** @var string */
112
    public $pathPattern = '/openapi/xops/tokens/[tokenId]';
113
114
    /** @var string */
115
    public $method = 'DELETE';
116
117
    /**
118
     * @param string $value
119
     *
120
     * @return $this
121
     */
122
    public function withTokenId($value)
123
    {
124
        $this->data['TokenId'] = $value;
125
        $this->pathParameters['tokenId'] = $value;
126
127
        return $this;
128
    }
129
}
130
131
/**
132
 * @method string getAppName()
133
 */
134
class DeleteApp extends Roa
135
{
136
    /** @var string */
137
    public $pathPattern = '/openapi/xops/instances/[appName]';
138
139
    /** @var string */
140
    public $method = 'DELETE';
141
142
    /**
143
     * @param string $value
144
     *
145
     * @return $this
146
     */
147
    public function withAppName($value)
148
    {
149
        $this->data['AppName'] = $value;
150
        $this->pathParameters['appName'] = $value;
151
152
        return $this;
153
    }
154
}
155
156
/**
157
 * @method string getAppName()
158
 * @method string getDataStreamName()
159
 */
160
class DeleteDataStream extends Roa
161
{
162
    /** @var string */
163
    public $pathPattern = '/openapi/xops/instances/[appName]/data-streams/[dataStreamName]';
164
165
    /** @var string */
166
    public $method = 'DELETE';
167
168
    /**
169
     * @param string $value
170
     *
171
     * @return $this
172
     */
173
    public function withAppName($value)
174
    {
175
        $this->data['AppName'] = $value;
176
        $this->pathParameters['appName'] = $value;
177
178
        return $this;
179
    }
180
181
    /**
182
     * @param string $value
183
     *
184
     * @return $this
185
     */
186
    public function withDataStreamName($value)
187
    {
188
        $this->data['DataStreamName'] = $value;
189
        $this->pathParameters['dataStreamName'] = $value;
190
191
        return $this;
192
    }
193
}
194
195
class DescibeRegions extends Roa
196
{
197
    /** @var string */
198
    public $pathPattern = '/openapi/xops/regions';
199
}
200
201
/**
202
 * @method string getTokenId()
203
 */
204
class DisableAccessToken extends Roa
205
{
206
    /** @var string */
207
    public $pathPattern = '/openapi/xops/tokens/[tokenId]/actions/disable';
208
209
    /** @var string */
210
    public $method = 'POST';
211
212
    /**
213
     * @param string $value
214
     *
215
     * @return $this
216
     */
217
    public function withTokenId($value)
218
    {
219
        $this->data['TokenId'] = $value;
220
        $this->pathParameters['tokenId'] = $value;
221
222
        return $this;
223
    }
224
}
225
226
/**
227
 * @method string getTokenId()
228
 */
229
class EnableAccessToken extends Roa
230
{
231
    /** @var string */
232
    public $pathPattern = '/openapi/xops/tokens/[tokenId]/actions/enable';
233
234
    /** @var string */
235
    public $method = 'POST';
236
237
    /**
238
     * @param string $value
239
     *
240
     * @return $this
241
     */
242
    public function withTokenId($value)
243
    {
244
        $this->data['TokenId'] = $value;
245
        $this->pathParameters['tokenId'] = $value;
246
247
        return $this;
248
    }
249
}
250
251
class GenerateAcccessToken extends Roa
252
{
253
    /** @var string */
254
    public $pathPattern = '/openapi/xops/tokens';
255
256
    /** @var string */
257
    public $method = 'POST';
258
}
259
260
/**
261
 * @method string getAppName()
262
 */
263
class GetApp extends Roa
264
{
265
    /** @var string */
266
    public $pathPattern = '/openapi/xops/instances/[appName]';
267
268
    /**
269
     * @param string $value
270
     *
271
     * @return $this
272
     */
273
    public function withAppName($value)
274
    {
275
        $this->data['AppName'] = $value;
276
        $this->pathParameters['appName'] = $value;
277
278
        return $this;
279
    }
280
}
281
282
/**
283
 * @method string getAppName()
284
 * @method string getDataStreamName()
285
 */
286
class GetDataStream extends Roa
287
{
288
    /** @var string */
289
    public $pathPattern = '/openapi/xops/instances/[appName]/data-streams/[dataStreamName]';
290
291
    /**
292
     * @param string $value
293
     *
294
     * @return $this
295
     */
296
    public function withAppName($value)
297
    {
298
        $this->data['AppName'] = $value;
299
        $this->pathParameters['appName'] = $value;
300
301
        return $this;
302
    }
303
304
    /**
305
     * @param string $value
306
     *
307
     * @return $this
308
     */
309
    public function withDataStreamName($value)
310
    {
311
        $this->data['DataStreamName'] = $value;
312
        $this->pathParameters['dataStreamName'] = $value;
313
314
        return $this;
315
    }
316
}
317
318
class GetRegionInfo extends Roa
319
{
320
    /** @var string */
321
    public $pathPattern = '/openapi/xops/regions/info';
322
}
323
324
/**
325
 * @method string getTokenId()
326
 */
327
class ListAccessTokens extends Roa
328
{
329
    /** @var string */
330
    public $pathPattern = '/openapi/xops/tokens';
331
332
    /**
333
     * @param string $value
334
     *
335
     * @return $this
336
     */
337
    public function withTokenId($value)
338
    {
339
        $this->data['TokenId'] = $value;
340
        $this->options['query']['tokenId'] = $value;
341
342
        return $this;
343
    }
344
}
345
346
/**
347
 * @method string getAppName()
348
 * @method string getPageSize()
349
 * @method string getDescription()
350
 * @method string getPageNumber()
351
 */
352
class ListApps extends Roa
353
{
354
    /** @var string */
355
    public $pathPattern = '/openapi/xops/instances';
356
357
    /**
358
     * @param string $value
359
     *
360
     * @return $this
361
     */
362
    public function withAppName($value)
363
    {
364
        $this->data['AppName'] = $value;
365
        $this->options['query']['appName'] = $value;
366
367
        return $this;
368
    }
369
370
    /**
371
     * @param string $value
372
     *
373
     * @return $this
374
     */
375
    public function withPageSize($value)
376
    {
377
        $this->data['PageSize'] = $value;
378
        $this->options['query']['pageSize'] = $value;
379
380
        return $this;
381
    }
382
383
    /**
384
     * @param string $value
385
     *
386
     * @return $this
387
     */
388
    public function withDescription($value)
389
    {
390
        $this->data['Description'] = $value;
391
        $this->options['query']['description'] = $value;
392
393
        return $this;
394
    }
395
396
    /**
397
     * @param string $value
398
     *
399
     * @return $this
400
     */
401
    public function withPageNumber($value)
402
    {
403
        $this->data['PageNumber'] = $value;
404
        $this->options['query']['pageNumber'] = $value;
405
406
        return $this;
407
    }
408
}
409
410
/**
411
 * @method string getAppName()
412
 * @method string getDataStreamName()
413
 * @method string getPageSize()
414
 * @method string getPageNumber()
415
 */
416
class ListDataStreams extends Roa
417
{
418
    /** @var string */
419
    public $pathPattern = '/openapi/xops/instances/[appName]/data-streams';
420
421
    /**
422
     * @param string $value
423
     *
424
     * @return $this
425
     */
426
    public function withAppName($value)
427
    {
428
        $this->data['AppName'] = $value;
429
        $this->pathParameters['appName'] = $value;
430
431
        return $this;
432
    }
433
434
    /**
435
     * @param string $value
436
     *
437
     * @return $this
438
     */
439
    public function withDataStreamName($value)
440
    {
441
        $this->data['DataStreamName'] = $value;
442
        $this->options['query']['dataStreamName'] = $value;
443
444
        return $this;
445
    }
446
447
    /**
448
     * @param string $value
449
     *
450
     * @return $this
451
     */
452
    public function withPageSize($value)
453
    {
454
        $this->data['PageSize'] = $value;
455
        $this->options['query']['pageSize'] = $value;
456
457
        return $this;
458
    }
459
460
    /**
461
     * @param string $value
462
     *
463
     * @return $this
464
     */
465
    public function withPageNumber($value)
466
    {
467
        $this->data['PageNumber'] = $value;
468
        $this->options['query']['pageNumber'] = $value;
469
470
        return $this;
471
    }
472
}
473
474
/**
475
 * @method string getAppName()
476
 * @method string getBody()
477
 */
478
class UpdateApp extends Roa
479
{
480
    /** @var string */
481
    public $pathPattern = '/openapi/xops/instances/[appName]';
482
483
    /** @var string */
484
    public $method = 'PUT';
485
486
    /**
487
     * @param string $value
488
     *
489
     * @return $this
490
     */
491
    public function withAppName($value)
492
    {
493
        $this->data['AppName'] = $value;
494
        $this->pathParameters['appName'] = $value;
495
496
        return $this;
497
    }
498
499
    /**
500
     * @param string $value
501
     *
502
     * @return $this
503
     */
504
    public function withBody($value)
505
    {
506
        $this->data['Body'] = $value;
507
        $this->options['form_params']['Body'] = $value;
508
509
        return $this;
510
    }
511
}
512
513
/**
514
 * @method string getAppName()
515
 * @method string getDataStreamName()
516
 * @method string getBody()
517
 */
518
class UpdateDataStream extends Roa
519
{
520
    /** @var string */
521
    public $pathPattern = '/openapi/xops/instances/[appName]/data-streams/[dataStreamName]';
522
523
    /** @var string */
524
    public $method = 'PUT';
525
526
    /**
527
     * @param string $value
528
     *
529
     * @return $this
530
     */
531
    public function withAppName($value)
532
    {
533
        $this->data['AppName'] = $value;
534
        $this->pathParameters['appName'] = $value;
535
536
        return $this;
537
    }
538
539
    /**
540
     * @param string $value
541
     *
542
     * @return $this
543
     */
544
    public function withDataStreamName($value)
545
    {
546
        $this->data['DataStreamName'] = $value;
547
        $this->pathParameters['dataStreamName'] = $value;
548
549
        return $this;
550
    }
551
552
    /**
553
     * @param string $value
554
     *
555
     * @return $this
556
     */
557
    public function withBody($value)
558
    {
559
        $this->data['Body'] = $value;
560
        $this->options['form_params']['Body'] = $value;
561
562
        return $this;
563
    }
564
}
565